The primary function of red blood cells is to transport oxygen from the lungs to the rest of the body. They also help to remove carbon dioxide (CO2) from the body, transporting it in the blood through the capillaries back to the lungs, releasing it there to be exhaled.