In a closed system, a gas is compressed from an initial volume of 4.0 liters to a final volume of 1.0 liter while maintaining a constant temperature of 300 K. Based on the principles of thermodynamics, particularly the ideal gas law, how does the pressure of the gas change as a result of this compression?