Disclosed are an endocyclic thiamidinoamide-arylamide compound and a pharmaceutical composition comprising the compound described above, and the use of the compound or pharmaceutical composition in the treatment of hepatitis B. In particular, disclosed is a compound that can be used as an HBV replication inhibitor and has the structure as shown in chemical formula (L), or a stereoisomer or tautomer thereof, or a pharmaceutically acceptable salt, hydrate or solvate thereof.