This invention relates to a use of IL-22 in the treatment of viral hepatitis. As illustrated in the examples of this invention, IL-22 can significantly reduce liver damage caused by hepatitis virus, and can significantly reduce the increase of transaminase ALT/AST induced by heptatitis virus. In addition, the IL-22 dimer of this invention can effectively treat viral hepatitis.