Nitrogen and hydrogen combine at high pressure and temperature to form ammonia gas. This method is used to prepare ammonia industrially and the process is called Haber's process.
We can see that 1 mole of Nitrogen combines with 3 moles of hydrogen to produce 2 moles of ammonia.
The ratio of nitrogen and hydrogen molecules should be 1:3 for reactants to get used up completely.