The diaphragm is a large flat muscle at the base of the rib cage that separates the thoracic and abdominal cavities of the ventral body cavity.The is a large flat muscle at the base of the rib cage that separates the thoracic and abdominal cavities of the ventral body cavity..