The 20th century began with Cuba, and therefore Havana, under occupation by the United States. The US occupation officially ended when Tomás Estrada Palma, first president of Cuba, took office on 20 May 1902.