The ductus arteriosus is a vessel that connects the pulmonary artery to the descending aorta, diverting blood away from the lungs. After birth, the increase in oxygen concentration and decrease in prostaglandins lead to its constriction and eventual closure. Functional closure typically occurs within the first day, while anatomical closure may take a few weeks.