As the aircraft ascends,
air escapes from the middle ear and the sinuses, usually without causing problems.
As the aircraft descends air must be allowed to flow back into the middle ear and sinuses in order to equalize pressure differences ("clearing the ears").