A cavity refers to the inner space or hollow space within a structure, often used in the context of anatomy or buildings. In anatomy, a cavity can refer to the hollow spaces within the body, such as the brain's ventricles or the lungs' alveoli. In buildings, a cavity can refer to the inner spaces within a building, such as a house or a church.