The underground passages of Guanajuato were originally built as a series of interconnected tunnels and caves to provide shelter from flooding and to transport goods and services to the city. Over time, the tunnels have been used for a variety of purposes, such as storage, transportation, and even as a hiding place for criminals. Today, the tunnels are mainly used as a tourist attraction.