Cyclooxygenase (COX) is an enzyme that produces prostaglandins within the bodys cells. There are two COX enzymes, COX-1 and COX-2. Both enzymes produce prostaglandins that promote inflammation, pain, and fever. However, only COX-1 produces prostaglandins that support platelets and protect the stomach.