The synthesis of intrinsic flame retardant copolymer by copolymerization with reactive flame retardants is the most potential method to prepare transparent and flame retardant poly (methyl methacrylate) (PMMA) at present,but the main challenge of this method is that the copolymer usually has poor mechanical properties and heat resistance. In this work, the hydrogen bond enhancement strategy is adopted, and the flame retardant PMMA with excellent comprehensive properties is obtained by ternary copolymerization with methyl methacrylate (MMA) as matrix unit, diethyl (methacryloyloxymethyl) phosphonate (DEP) as flame retardant unit and methacrylamide (MAA) as hydrogen bond unit. Due to the formation of intermolecular hydrogen bond via MAA unit, the storage modulus, flexural strength and impact strength of the terpolymer containing 15 mol% MAA are 48%, 19%, and 24% higher than those of the copolymer of MMA and DEP, and its hardness, glass transition temperature and load thermal deformation temperature (increased by 7°C) are also superior. Moreover, owing to the gas‐phase dilution and charring flame retardancy of MAA unit, the terpolymer shows increased limiting oxygen index (24.3%) and UL94 rating (V‐1). This work not only provides a promising flame retardant PMMA for practical application, but also offers a new strategy to design flame retardant polymers with good mechanical properties.