Prostaglandins are a type of chemical that are formed by an enzyme called cyclooxygenase. They are vital in the process of inflammation as well as many protective processes in the gastrointestinal system and the kidneys. The formation of prostaglandins is inhibited by drugs called NSAIDs.