What is the Function of the Diaphragm?

The basic function of the diaphragm is to help the lungs to expand and to tighten. When the lungs will fill with air the diaphragm will expand and when the air comes out of the lungs the diaphragm will tighten.