 He returned to Cuba in 1922, to become Foreign Minister under Gerardo Machado but resigned after a year.President Machado then named him Ambassador to Mexico but Céspedes delayed his departure for reasons of ill health.Thereafter, he was active in trying to overthrow Machado.