In 1763, Spain traded Florida to Great Britain in exchange for control of Havana, Cuba, which the British had captured during the Seven Years' War. Florida was home to about 3,000 Spaniards at the time, and nearly all quickly left. Britain occupied Florida but did not send many settlers to the area. Dr. Andrew Turnbull's failed colony at New Smyrna, however, resulted in hundreds of Menorcans, Greeks, and Italians settling in St. Augustine in 1777. During the American Revolution, East and West Florida were Loyalist colonies. Spain regained control of Florida in 1783 by the Peace of Paris which ended the Revolutionary War. Spain sent no more settlers or missionaries to Florida during the Second Spanish Period. The inhabitants of West Florida revolted against the Spanish in 1810 and formed the Republic of West Florida, which was quickly annexed by the United States. The United States took possession of East Florida in 1821 according to the terms of the Adams–Onís Treaty.