Another colony lost by Spain in 1898 was Cuba, but as freedom for Cuba had been a major purpose of the war, it was not annexed by the U.S., but was, after a period of occupation, given independence in 1902. Election fraud and corruption followed, as did factional conflict. In September 1906, President Tomás Estrada Palma asked for U.S. intervention. Taft traveled to Cuba with a small American force, and on September 29, 1906, under the terms of the Cuban–American Treaty of Relations of 1903, declared himself Provisional Governor of Cuba, a post he held for two weeks before being succeeded by Charles Edward Magoon. In his time in Cuba, Taft worked to persuade Cubans that the U.S. intended stability, not occupation.