What is the function of the diaphragm?
The diaphragm is a dome-shaped sheet of muscle under the lungs that is the main muscle used for breathing. When it contracts and flattens, it pulls air into the lungs; when it relaxes, air flows back out.
The diaphragm separates the chest cavity, which holds the heart and lungs, from the abdominal cavity, which holds the stomach, liver and intestines.
How breathing works
When you breathe in, the diaphragm tightens and moves down. This makes the chest cavity larger and lowers the air pressure inside the lungs, so air flows in.
When you breathe out, the diaphragm relaxes and rises back into its dome shape, pushing air out.
Muscles between the ribs, called intercostal muscles, help by lifting and lowering the rib cage.
Automatic and voluntary
The diaphragm works automatically, controlled by the brainstem, even while you sleep. You can also control it on purpose, for example when holding your breath or singing.
It is controlled by the phrenic nerves, which come from the neck.
Other jobs
The diaphragm helps when you cough, sneeze, laugh, vomit and push during bowel movements or childbirth.
Openings in the diaphragm let the esophagus and major blood vessels pass through.
Hiccups
Hiccups happen when the diaphragm suddenly spasms. The rush of air is stopped by the vocal cords snapping shut, making the hic sound.
Singers and wind players train to control their diaphragm.
This answer is general information, not medical advice. For a personal health question, talk to a doctor.