In order to obtain nanomaterials with better dispersal, filling and barrier properties, which were used as fillers to enhance the protection of the epoxy coatings for cement mortar, the polydopamine (PDA), which was prepared by self-polymerization of dopamine hydrochloride (DA) and silane coupling agent (KH550), was utilized to modify nano hexagonal boron nitride (hBN) and nano silicon dioxide (SiO
2), respectively, to obtain two nanomaterials PDABN and functionalised SiO
2(fSiO
2) by polymerization reactions. A new nanomaterial, polydopamine hexagonal boron nitride - functionalised silicon dioxide (PDABN-fSiO
2), was synthesized, and it was mixed with epoxy to prepare a modified coating. The coating was covered on the surface of cement mortar to enhance its carbonation resistance. The microscopic characteristics of nano materials were observed by FT-IR, SEM-EDS and XPS. The modified effect of epoxy coating by nano PDABN-fSiO
2 was analyzed by carbonation experiments and permeability tests. Results indicate that the prepared nano PDABN-fSiO
2 has a layer-particle structure and better dispersion in coating, which can effectively slow down the penetration of CO
2 in the coating. Compared with the blank coating, the carbonation depth of the cement mortar coated with nano PDABN-fSiO
2/epoxy coating is decreased by 68.7%, 72.9% and 64.8% at 7, 14 and 28 days of carbonation, respectively, and the permeability of its coating is decreased by 34.7% at 48 hours. Thus, the epoxy coating with nano PDABN-fSiO
2 can significantly improve the carbonation resistance of cement mortar and reduce its permeability.