The fetal circulation allows oxygen and nutrients to pass from the mother's blood to the fetus via the placenta and umbilical cord. Blood from the fetal heart is shunted away from the lungs through the ductus arteriosus and returns to the aorta. The placenta connects the fetus to the uterine wall, allowing nutrient/gas exchange and waste elimination via the mother's blood supply. The fetal circulation has special structures like the foramen ovale and ductus arteriosus that ensure blood bypassing the lungs reaches the body. After birth, changes in blood flow and pressure cause these structures to close as the lungs become functional.