The Tequesta tribe lived in what is now Miami before Spain claimed it. In 1566, Pedro Menéndez de Avilés, Florida's first governor, claimed the area from the Tequesta for Spain. Spain ruled Florida until Spain gave it to the United States in 1821. Florida became a state in 1845. On July 28, 1896, Miami officially became a city. It was named after the Mayaimi tribe.