The mediastinum, a cavity that houses the lungs, the heart and some of its vessels, the trachea, the thymus, and much of the sternum, and the abdominopelvic cavity, a cavity that includes the liver and attached gallbladder, possibly pancreas depending on orientation, stomach, intestines, and urinary bladder, are separated by the diaphragm muscle.