What is the function of a catalyt converter?

it chemically changes the fumes from the engine into carbon dioxide and water which keeps greenhouse gasses from building up quickly