Oxides of highly active metals like potassium, sodium, calcium, magnesium and aluminium have great affinity towards oxygen and so cannot be reduced by common reducing agents like carbon, carbon monoxide or hydrogen.
They are obtained by electrolytic reduction of fused metallic salts (halides and oxides) using inert electrodes.
The metals in the middle of the activity series such as iron, lead, copper, etc., are moderately reactive and are found as sulphides or carbonates in nature. They are obtained by the reduction of their oxides with carbon, carbon monoxide and hydrogen.
Mercury and silver are very less reactive, placed in the end of the reactivity series. The oxides of these metals are reduced to metals by heating alone.