Modified coagulants were investigated for the removal of phosphorus from secondary effluent of wastewater treatment. The modified coagulants were prepared by mixing alkali earth metal ions such as calcium and magnesium. The basicity of a coagulant influenced on the removal of phosphorus, and coagulants with basicity of 5.9% showed a better removal of total phosphorus than that of 38.5%. Also, coagulants with alkali earth metals enhanced the performance of coagulation by 10% and resulted in 67.1% for total phosphorus removal. Moreover, the removal of suspended solids and chemical oxygen demand was improved using coagulants with low basicity and earth metal ions. Results of this study demonstrated that the use of coagulants with low basicity, and calcium and magnesium ions is recommended to improve wastewater effluent quality.