The invention discloses a method for purifying sermaglutide. The method comprises the following steps that in the first step, a sermaglutide crude product is pre-treated, and a sermaglutide crude peptide aqueous solution is obtained; in the second step, a tetralkylsilane bonded silica gel filler serves as a fixed phase, phosphoric acid serves as a mobile phase A, acetonitrile serves as a mobile phase B, and first HPLC (high performance liquid chromatography) purification is conducted so as to remove impurities of sermaglutide segment; in the third step, a solvent is removed, and a first step sample solution of sermaglutide is obtained; in the fourth step, an octane silane bonded silica gel filler serves as a fixed phase, an ammonium acetate solution serves as a mobile phase A, acetonitrileserves as a mobile phase B, and secondary HPLC purification is conducted so as to remove impurities having the similar physical and chemical properties as sermaglutide; and in the fifth step, the solvent is removed to obtain a second step sample solution of sermaglutide, and a sermaglutide sample solution is obtained. HPLC purification is conducted twice, the purity of the sample obtained in thefirst HPLC purification process and the secondary HPLC purification process is 92% and 99% respectively, and thus the purity and the yield of semaglutide are improved.