Hemoglobin is a protein found in red blood cells that is responsible for transporting oxygen from the lungs to tissues throughout the body and carrying carbon dioxide back to the lungs for exhalation. It binds to oxygen molecules in the lungs, allowing for efficient oxygen delivery to cells, which is essential for cellular respiration and energy production. Additionally, hemoglobin helps maintain the pH balance of blood by buffering acids and bases.