Cuba, officially the Republic of Cuba, is an island country in the Caribbean. It comprises 4,195 islands, islets and cays, including the eponymous main island and Isla de la Juventud. Situated at the confluence of the Caribbean Sea, Gulf of Mexico, and Atlantic Ocean, Cuba is located east of the Yucatán Peninsula, south of both Florida (the United States) and the Bahamas, west of Hispaniola (Haiti and the Dominican Republic), and north of Jamaica and the Cayman Islands. Havana is the largest city and capital. Cuba is the third-most populous country in the Caribbean after Haiti and the Dominican Republic, with about 10 million inhabitants. It is the largest country in the Caribbean by area. Culturally, Cuba is considered part of Latin America.
Cuba was inhabited as early as the fourth millennium BC, with the Guanahatabey and Taíno peoples present at the time of Spanish colonization in the 15th century. Cuba remained part of the Spanish Empire until the Spanish–American War of 1898, after which it was occupied by the United States and gained independence in 1902. A 1933 coup toppled the democratically elected government of Carlos Manuel de Céspedes y Quesada and began a long period of military influence, particularly by Fulgencio Batista. In 1940, Cuba implemented a new constitution, but mounting political unrest culminated in the 1952 Cuban coup d'état by Batista. His autocratic government was overthrown in January 1959 by the 26th of July Movement during the Cuban Revolution. That revolution established communist rule under the leadership of Fidel Castro. The country under Castro was a point of contention during the Cold War between the Soviet Union and the United States, and the Cuban Missile Crisis of 1962 is widely considered the closest the Cold War came to escalating into nuclear war.