NSAID inhibits COX1 and COX2, that produces prostagladins which lead to fever, pain and inflammations in body. COX 1 also produces stomach lining which protects stomach from acids and control bleeding. By inhibiting COX 1 and COX2, the risk of bleeding and peptic ulcer increases when NSAID is used.