Before birth, the fetus relies on the placenta for oxygen and carbon dioxide exchange. The fetal lungs are filled with fluid, and the blood circulation bypasses the lungs through the [foramen ovale]() and [ductus arteriosus](), two shunts that divert blood away from the pulmonary arteries.