The main function of a catalytic converter is to reduce harmful emissions from internal combustion engines by converting pollutants into less toxic substances. It achieves this by catalyzing reactions that transform gases like carbon monoxide, hydrocarbons, and nitrogen oxides into carbon dioxide, water, and nitrogen.