The primary function of the phrenic nerve is to stimulate the diaphragm to contract. During inhalation, the diaphragm moves downwards, creating a negative pressure in the thoracic cavity, which allows air to flow into the lungs. When the diaphragm relaxes during exhalation, air is expelled from the lungs. Additionally, the phrenic nerve provides sensory information from the diaphragm and the pleura, enhancing the body's ability to regulate breathing efficiently. This nerve's impact extends beyond mere respiration, as it plays a role in maintaining the overall stability of the thoracic cavity dimensions, which is vital during physical activity and various body positions.