The study of the structure and function of the respiratory system, including the lungs, bronchial tubes, and trachea.