In this research we investigate heterocyclic compounds (HCs) that play a crucial role in organic chemistry, serving as the foundation for many biological and pharmaceutical molecules. These compounds contain heteroatoms like oxygen, sulfur, and nitrogen within their structure, giving them valuable properties such as antibacterial, antioxidant, and enzyme-inhibiting qualities that are significant in medicine. Dipyrimidines, a type of heterocyclic compound, have a diverse range of applications in medicine including antiviral, antifungal, antibacterial, and anticancer effects. Pyrido[2,3-d:5,6-d′]dipyrimidines, a subgroup of nitrogen-containing heterocyclic compounds, have a unique structure that includes a pyrimidine ring. Despite their usefulness, there are limited methods for synthesizing dipyrimidines, prompting research into various synthesis techniques with different starting materials. The concept of "green chemistry," which promotes environmentally friendly reaction conditions and reduces waste, has gained traction in recent years. Multi-component reactions (MCRs) have emerged as a valuable tool in organic chemistry for efficiently synthesizing complex compounds in a single step. MCRs have advanced the synthesis of natural products and novel chemicals due to their rapid, simple, and versatile nature. These reactions are increasingly popular in academia and industry for producing medicinal compounds.