Mechanical ventilators sustain life of patients that are unable to breathe (sufficiently) on their own. The aim of this paper is to improve pressure tracking performance of mechanical ventilators for a wide variety of sedated patients. This is achieved by utilizing the repetitive nature of sedated ventilation through repetitive control. A systematic design procedure of a repetitive controller for mechanical ventilation is presented. Thereafter, the controller is implemented in an experimental setup showing superior tracking performance for a variety of patients.