After birth, the lungs expand with air, leading to increased oxygen levels in the blood. This change, along with increased systemic vascular resistance, usually causes the ductus arteriosus to constrict and eventually close within the first few days of life.