 In 1813, during the Mexican War of Independence, the Battle of the Medina was fought nearby.Antonio López de Santa Anna served as a lieutenant and became familiar with the area during this campaign.In 1827, Blas Maria Herrera, who married into the Ruiz family, established the first permanent settlement with his wife in the area.