The human respiratory system allows for gas exchange between the external environment and blood. It consists of the nostrils, nasal cavity, pharynx, larynx, trachea, bronchi, bronchioles, lungs, diaphragm and other structures. During inspiration, the diaphragm and intercostal muscles contract, lowering pressure and allowing air into the lungs. During expiration, they relax, raising pressure and pushing air out. Oxygen diffuses into the blood in the lungs and carbon dioxide diffuses out, carried by red blood cells to and from tissues via cellular respiration.