Tubac became part of an independent Mexico in 1821 and then part of the United States in 1854 as a result of the Gadsden Purchase.
The acquisition of Tubac by the United States through the Gadsden Purchase in 1854 was a result of its previous independence and subsequent annexation into Mexico.