Ibuprofen is primarily used in neonates to treat Patent Ductus Arteriosus (PDA), a condition where the ductus arteriosus fails to close after birth. The closure of this duct is essential for the proper circulation of blood. If left untreated, PDA can lead to complications such as heart failure and inadequate oxygenation of the blood.