In 1702–1704, an inter-Indian Native American conflict started as part of Queen Anne's War involving the English armies on one side and the Spanish on another resulted in the Apalachee massacre. The conflict later also escalated into the Yamasee War. After the end of the First Seminole War in 1821, the Florida provinces joined the United States, a process finalized in the ratification of the Adams–Onís Treaty. From 1835 to 1842 the Second Seminole War resulted in the elimination by force of most of the Native Americans from the territory. Florida was incorporated into the United States as a state in 1845. After Florida's incorporation into the United States problems with Seminoles continued until almost 1860.