In neonates, particularly premature infants, NSAIDs are often used to treat conditions like Patent Ductus Arteriosus (PDA). PDA is a heart condition where the ductus arteriosus fails to close after birth, which can lead to severe complications. NSAIDs like indomethacin and ibuprofen are effective in closing the ductus arteriosus.