A courtyard is an open space enclosed by the walls or buildings, often serving as a private outdoor area for relaxation, social gatherings, or functional activities. Historically and architecturally significant, courtyards provide natural light, ventilation, and a connection to nature within urban or densely built environments.