The invention relates to a method for preparing a foaming agent of a foam fire extinguishing agent, and belongs to the technical field of environmental protection materials. The invention comprises the steps of stirring to remove slag, filtering, adding alkali, hydrolyzing, cooling and foaming. The method for preparing the foaming agent of the present invention is simple, low in cost, easy to realize continuous production, stable in product quality, stable, large in quantity, and fast in defoaming of the foaming agent can be obtained, does not pollute the environment, does not generate waste water, and the raw material is waste , can realize waste reuse.