Cuba was controlled by foreign powers. The country was a Spanish colony from approximately 1511 until 1898. The United States governed the nation from 1898–1902, and would intervene in national affairs until the abolishment of the Platt Amendment in 1935. The struggle for independence and a national identity was a complex and prolonged affair that began in earnest during the late 18th century and lasted well into the 20th century.