The pulmonary artery transports blood rich in carbon dioxide from the heart's right ventricle to the lungs.