The invention relates to a preparation method of a proton exchange membrane for a fuel cell, and belongs to the technical field of energy materials. Modified octa(cobaltocenyl)-POSS is introduced intoa solution of functional polymer materials such as polyimide, polybenzimidazole, polyether-ether-ketone, polyether sulfone and the like, and the high-performance anion proton exchange membrane can beconveniently obtained through a solution casting method. The preparation method is short in process and simple to operate, and meanwhile, compared with a commercial anion proton exchange membrane, the exchange membrane prepared on the basis of the preparation method has high ionic conductivity, excellent alkaline functional group stability, high mechanical strength and low swelling property. Besides, POSS with good organic compatibility is introduced, and the organic-inorganic special structure of POSS is utilized, so that the formation of an effective micro-phase separation structure is promoted, the proton conductivity of the composite membrane is improved to a certain extent, and the composite membrane has a wide application prospect in the field of anion proton exchange membranes.