The diversity of different physical and structural features of habitats and ecosystems that affect biodiversity.