What is the role of hemoglobin?

What is the role of hemoglobin?