Background/Aim: Accumulation of advanced glycation end products (AGEs) is a major cause of diabetes mellitus (DM) skin complications. Methylglyoxal (MGO), a reactive dicarbonyl compound, is a crucial intermediate of AGEs generation. N-acetyl-L-cysteine (NAC), an active ingredient of some medicines, can induce endogenous GSH and hydrogen sulfide generation, and set off a condensation reaction with MGO. However, there is rare evidence to show NAC can alleviate DM-induced skin injury through inhibition of AGEs generation or toxicity. The present study aimed to observe the effects of NAC on MGO-induced inflammatory injury and investigate the roles of AGEs and its receptor (RAGE) in NAC’s dermal protection in human HaCaT keratinocytes. Methods: The cells were exposed to MGO to simulate a high MGO status in diabetic blood or tissues. The content of AGEs in serum or cell medium was measured with ELISA. The protective effects of NAC against MGO-induce injury were evaluated by administration before MGO one hour, in virtue of cell viability, mitochondrial membrane potential, inflammation reaction, nuclear factor (NF)-κB activation, matrix metalloproteinase (MMP)-9 expression, as well as cellular behavioral function. Results: We found the AGEs levels of patients with DM were elevated comparing with healthy volunteers. The in vitro AGEs generation was also able to be enhanced by the exposure of HaCaT cells to MGO, which reduced dose-dependently cellular viability, damaged mitochondrial function, triggered secretion of interleukin (IL)-6 and IL-8, activated NF-κB and upregulated MMP-9 expression. Furthermore, the exposure caused cellular adhesion and migration dysfunction, as well as collagen type I inhibition. Importantly, before the exposure to MGO, the preconditioning with NAC significantly attenuated MGO-induced AGEs generation, improved cellular viability and mitochondrial function, partially reversed the overexpression of proinflammatory factors and MMP-9, as well as the activation of NF-κB. Lastly, NAC blocked MGO-induced RAGE upregulation, and inhibition of RAGE with its neutralizing antibody significantly alleviated MGO-induced NF-κB activation, MMP-9 upregulation and inflammatory injury in HaCaT cells. Conclusion: The present work indicates the administration of NAC can prevent MGO-induced dermal inflammatory injury through inhibition of AGEs/RAGE signal, which may provide a basal support for the treatment of diabetic skin complications with NAC-containing medicines in the future.