A compartment is a separate and enclosed space within a larger structure or area. It can refer to a specific section or division, often used in reference to a ship's internal layout where different areas are divided into smaller sections called compartments. In other contexts, it may also refer to an individual unit of storage or organization, such as a drawer or cabinet with separate compartments for storing items.