During the Republican Period, from 1902 to 1959, the city saw a new era of development. Cuba recovered from the devastation of war to become a well-off country, with the third largest middle class in the hemisphere. Apartment buildings to accommodate the new middle class, as well as mansions for the Cuban tycoons, were built at a fast pace.