Matmata has many of the best examples of troglodyte architecture in the world: vertical caves dug by man into soft sandstone, usually formed as a circle, with doors and rooms dug in from the vertical walls.