Magnesium-modified biochar was used to adsorb phosphorus from wastewater and used as a phosphorus source to be recycled to reduce the ammonia nitrogen of piggery digestive wastewater. (1st August 2022)