Provided is a method for the prevention or treatment of inflammatory diseases using a naphthoquinone or benzoindazole compound which increases the ratio of NAD+ and NAD+ / NADH through activity in NQO1 in vivo, and through this, activates mitochondria, thereby inducing the metabolism of macrophages towards mitochondrial OXPHOS, which is the major metabolic pathway of M2 phenotype macrophages, such that the macrophages are polarized into an anti-inflammatory macrophage M2 phenotype, and consequently is able to inhibit the expression and activity of inflammatory cytokines, or a pharmaceutically acceptable salt, hydrate, solvate, enantiomer, diasteromer, tautomer, or prodrug thereof.