The Treaty of Pasto of 1832 was signed by which the Department of Cauca was turned over to New Granada (modern Colombia), the government of Bogota recognized Ecuador as an independent country and the border was to follow the Ley de División Territorial de la República de Colombia (Law of the Division of Territory of the Gran Colombia) passed on June 25, 1824.