Cyclooxygenase-2 (COX-2), a key enzyme in the inflammatory pathway, is the target for various nonsteroidal anti-inflammatory drugs (NSAIDs) and selective inhibitors known as coxibs. This study focuses on the development of novel imidazole derivatives as COX-2 inhibitors, utilizing a Structure-Activity Relationship (SAR) approach to enhance binding affinity and selectivity. Molecular docking was performed using Autodock Vina, revealing binding energies of -6.928, -7.187, and -7.244 kJ/mol for compounds 5b, 5d, and 5e, respectively. Molecular dynamics simulations using GROMACS provided insights into the stability and conformational changes of the protein-ligand complexes. Key metrics such as RMSD, RMSF, Rg, SASA, and hydrogen bond analysis were employed to assess the interactions. The binding free energy of the inhibitors was estimated using the MMPBSA method, highlighting compound 5b (N-[(3-benzyl-2-methylsulfonylimidazol-4-yl)methyl]-4-methoxyaniline) with the lowest binding energy of -162.014 kcal/mol. ADMET analysis revealed that compound 5b exhibited the most favorable pharmacokinetic properties and safety profile. Overall, this investigation underscores the potential of these novel imidazole derivatives as effective COX-2 inhibitors, with compound 5b emerging as the most promising candidate for further development.