The diaphragm in the respiratory system is the dome-shaped sheet of muscle that separates the chest from the abdomen. It is also referred to the thoracic diaphragm because it's located in the thoracic cavity, or chest. It is attached to the spine, ribs and sternum and is the main muscle of respiration, playing a very important role in the breathing process. The lungs are enclosed in a kind of cage in which the ribs form the sides and the diaphragm, an upwardly arching sheet of muscle, forms the floor. When we breathe, the diaphragm is drawn downward until it is flat. At the same time, the muscles around the ribs pull them up like a hoop skirt. The chest, or thoracic, cavity becomes deeper and larger, making more air space.
The two parts of the diaphragm are the peripheral muscular and central aponeurotic parts. The peripheral muscular part is made up of muscle fibers that converge on the central tendon, or the central aponeurotic part, which is a thick, flat plate of dense fibers. The peripheral muscular part is separated into three parts: the sternal, costal and lumbar. The sternal part is made up of two muscular slips that are small and attach to the back aspect of the xiphoid process. The costal portion is made up of muscular slips as well, but these are wide and come from the inferior six ribs' internal surfaces and costal cartilages, interdigitating with the slips of the transversus abdominis muscles. The lumbar portion comes from the lumbar vertebra by two pillars called the musculotendinous crura. These pillars attach on both sides of the aorta.
There are openings in the diaphragm for the esophagus, the phrenic nerve (which controls the movements of the diaphragm to produce breathing), and the aorta and vena cava blood vessels, which lead to and from the heart. When air is drawn into the lungs, the muscles in the diaphragm contract, and pull the central tendon down. This enlarges the chest (thoracic cavity), and air then passes into the lungs to fill the larger space. The diaphragm sometimes contracts involuntarily because when the controlling nerves eat too fast they get irritated (or for some other reason). If air is inhaled at this time, the space between the vocal cords at the back of the throat close suddenly and produce the clicking noise we call hiccups.