Pyridone derivatives, methods of preparing the pyridone derivatives, and methods of using the pyridone derivatives are provided. In particular, pyridone derivatives of formula (I), and pharmaceutical salts thereof are provided. The pyridone derivatives are useful as mitogen-activated protein kinase kinase (MEK) inhibitors, and can be used as therapeutic agents for treating cancer.