The process whereby ammonia in wastewater is oxidized to nitrite and then to nitrate by bacterial or chemical reactions