As the largest excavated underground city in the world ... Derinkuyu served as a secure haven during invasions, with its complex layout making it nearly impenetrable to attackers.