Metals that are less reactive than carbon (e.g. iron and lead) can be extracted from their oxides by heating with carbon:
iron oxide + carbon-iron + carbon dioxide
The iron oxide loses oxygen, so it is reduced.
The carbon gains oxygen, so it is oxidised.