This invention provides a kind of nonnucleoside HBV inhibitor, which concretely has a following structure. Pharmacological experiments show that this kind of inhibitor is effectively inhibitory to the DNA replication of influenza virus and hepatitis B virus (HBV) and the synthesis of s antigen and e antigen of HBV. This invention also provides a method to prepare this inhibitor.