When a metallic ore is an ionic compound, the ore must usually be smelted —heated with a reducing agent—to extract the pure metal. Many common metals, such as iron, are smelted using carbon as a reducing agent. Some metals, such as aluminum and sodium, have no commercially practical reducing agent, and are extracted using electrolysis instead.