The foramen ovale allows blood to pass from the right atrium to the left atrium during fetal development, bypassing the nonfunctional fetal lungs while the fetus obtains its oxygen from the placenta. This opening normally closes shortly after birth once the lungs become functional and the infant begins breathing air.