On the ground, the airplane is unpressurized and the outflow valve is wide open. During preflight, the pilot sets the cruise altitude on a cabin pressure controller. As soon as the weight is off the main wheels at takeoff, the outflow valve begins to close and the cabin starts to pressurize.