A method for purifying a cyclic lipopepteide or a salt thereof is provided. The method comprises the steps: (1) extracting a fermentation broth containing a compound of formula I or a salt thereof, to obtain an extract 1 after filtration or centrifugation (2) diluting or concentrating the extract 1 under vacuum to decrease the content of the organic solvent, to obtain an extract 2 (3) loading the extract 2 onto a macroporous absorption resin (4) washing the macroporpous adsorption resin with water, an organic solvent, or a mixture of water and an organic solvent as a washing solution and (5) eluting the compound of formula I off from the macroporous adsorption resin with water, an organic solvent, or a mixture of water and an organic solvent as a washing solution as an eluant. Compared with the prior art, the purification method has the advantages that fewer organic solvent is used, no silica gel is used, the harm to the environment is less, and the purity of the collected compound of formula I is improved.