The main function of iron is to transport oxygen and carbon dioxide.