Blood is oxygenated in the lungs through a process called gas exchange. When blood flows through the pulmonary capillaries, oxygen from the inhaled air diffuses into the blood, while carbon dioxide diffuses out to be exhaled. The oxygen then binds to hemoglobin in red blood cells, forming oxyhemoglobin.