The O2 and N2 pressure-broadening parameters of the 4(1,4)-3(2,1) rotational transition in the ground vibrational state of H2O have been measured in the temperature range between 100 and 520 K. Above 250 K the measurements were made in an equilibrium cell. Below 250 K a cell, which uses collisional cooling to circumvent the temperature limits imposed by the vapor pressure of the sample gas, was used. The data were fitted to an exponential temperature-dependence for data above 150 K with resultant n values of 0.81(3) for O2 and 0.70(3) for N2, where the entries in parentheses represent the error in the last significant figure of the parameter. Below 150 K the measured pressure-broadening parameters are smaller than those calculated using these values of n.