Cancer and inflammation interlink with many pathways. Millions of people died because of these two disorders. Major pathways that cause both inflammation and cancer are STAT3, NF‐κB, COX, and histone acetylation. However, these are the target for medicinally potent heterocycles such as pyrimidines, indole, and pyrazole. Many NSAIDs reported in the literature belong to both natural and synthetic molecules. This review encompasses molecular mechanisms for inflammation, NSAIDs derived from natural sources and synthetic methods, and recent reports on heterocycles as potent anti‐inflammatory agents and their significance in cancer treatment. Literature for the study, accomplished from 2019 to 2022.