In this study, 2-amino-4-hydroxy-6-methylpyrimidine (UPy) sequence was successfully introduced into polyethylenimine matrix by polymerization reaction, and UPy modified polyethylenimine supramolecular adhesive (PEI-UPy) was prepared. The successful synthesis of PEI-UPy adhesive was confirmed by FTIR test and 'HNMR test. Through DSC analysis, rotary rheometer test and tensile shear strength test, it is proved that the adhesive can not only be used for bonding of various matrix materials, but also can be used as epoxy resin curing agent, and the shear strength of the adhesive on the steel plate can be increased to 6.2 MPa. The adhesive prepared in this study is reversible, and it is a kind of environment-friendly adhesive with wide application prospect.