Dear student
Nitrogen is required by plants to make proteins during the process of Nitrification. Nitrification is a processes in which ammonia is converted into nitrite and then into nitrates by action of bacteria Nitrosomomas and Nitrobacter respectively.
Regards