José de San Martín and Simón Bolívar used the valley as a base during the Wars of Independence because of its strategic value.