He served as prosecutor, judge, mayor of Havana, secretary of the Constitutional Convention, Senator 1905, president of the Senate 1906, Vice President of Cuba 1908–1913 and President of Cuba from May 20, 1921, to May 20, 1925.