The body cavities are divided into two main types - the dorsal cavity and the ventral cavity. The dorsal cavity protects the nervous system and is divided into the cranial cavity within the skull and the vertebral cavity within the vertebral column. The ventral cavity houses the internal organs and is divided into the thoracic cavity and the abdominopelvic cavity. The thoracic cavity contains the lungs, heart, and other thoracic organs, while the abdominopelvic cavity contains the stomach, intestines, and other abdominal and pelvic organs.