The present study is concerned with the corrosion inhibition and adsorption behaviour of a series of novel imidazole derivatives. The compounds under investigation are 5,5-diphenyl-3-propyl-2-(propylthio)-3,5-dihydro-4 H-imidazol-4-one (AM3) and 3-allyl-2-(allylthio)-5,5-diphenyl-3,5-dihydro-4 H-imidazol-4-one (AM6). The objective of this study is to evaluate the efficacy of 5,5-diphenyl-3,5-dihydro-4 H-imidazol-4-one (AM6) as a corrosion inhibitor on mild steel immersed in a 1.0 M hydrochloric acid medium. This comprehensive study assesses the efficacy of these derivatives through a range of electrochemical and spectroscopic analysis techniques. Additionally, polarisation curves, electrochemical impedance spectroscopy and advanced computer simulations were employed to evaluate the efficacy and inhibition mechanism of imidazole derivatives, thereby facilitating a more profound understanding of their anticorrosive capacity. The results obtained from potentiodynamic polarisation (PDP), electrochemical frequency modulation (EFM) and electrochemical impedance spectroscopy (EIS) measurements demonstrate that the inhibition efficiency increases with increasing imidazole derivative concentration. Conversely, an inverse relationship is observed between inhibition efficiency and temperature. The thermodynamic parameters ΔG°_ads and ΔH°_ads corroborate the conclusion that the adsorption process is predominantly chemical in nature. Scanning electron microscopy (SEM), energy dispersive X-ray spectroscopy (EDX) and X-ray photoelectron spectroscopy (XPS) were employed to characterise the surface morphology. The maximum protection afforded by imidazole derivatives was 95.2 % and 93 % for compounds AM3 and AM6, respectively. Polarisation curves indicated that imidazole derivatives exhibited mixed inhibition behaviour. Surface analysis demonstrated that imidazole derivatives were effectively adsorbed onto the carbon surface, thereby significantly reducing acid damage. This finding was corroborated by DFT calculations, as well as Monte Carlo (MC) and molecular dynamics (MD) simulations. These simulations provided a comprehensive insight into the adsorption of imidazole and its protonated form onto the carbon surface, offering valuable insight into the corrosion inhibition mechanism.