The invention relates to the technical field of environmental protection and particularly relates to a porous material capable of removing total phosphorus in wastewater and a preparation method of the porous material. The porous material comprises porous material matrixes having controllable pore diameters, wherein each porous material matrix is prepared by mixing a mixture of metal oxides, an inorganic material and an organic material, milling, molding, drying and sintering processes. By the characteristics that the porous material has high selectivity and high adsorption efficiency to total phosphorus, good chemical stability, high mechanical strength, simplicity in application method and long service life and can be directly paved inside a filtration tank or filled inside a filtration tower column, the porous material can be widely used in industrial wastewater treatment, mining and smelting, electroplating, electronics production, dyeing and garment industry, and can also be used in urban sewage, rivers, lakes and other groundwater management, especially in deep treatment of wastewater containing low concentration of total phosphorus, so that the content of total phosphorus in the treated water can be reduced to 0.05mg/L which is superior to the Class IV water body standard requirements in the national 'Surface Water Environmental Quality Standard' (GB3838-2002).