The invention provides a porous electrode for a flow battery and a preparation method of the porous electrode, and relates to the field of flow batteries. The preparation method comprises the following steps: S1, adding polyacrylonitrile and a metal salt into N, N-dimethylformamide or N, N-dimethylacetamide, carrying out heating and mixing until polyacrylonitrile and the metal salt are dissolved,so as to obtain an electrospinning stock solution; S2, carrying out electrostatic spinning by using the electrospinning stock solution to obtain an electrospun fiber membrane; S3, dissolving an organic ligand in a solvent to obtain an organic ligand solution, soaking the electrospun fibrous membrane in the organic ligand solution for a period of time, and generating MOF particles in situ on the surface of the electrospun fibrous yarn; and S4, carrying out pre-oxidation on the fibers with the MOF particles deposited on the surfaces, and then carrying out carbonization in an inert gas atmosphereto obtain the porous electrode. The porous electrode prepared in the invention has a large specific surface area, is helpful for reducing the activation loss of the battery and improving the performance of the battery, and can be suitable for various flow batteries.