Espartero was named president of the government, this time by the very queen for whom he had been regent ten years before. Espartero, indebted to O'Donnell for restoring him to power but concerned about having to share power with another man, tried to get him installed to a post as far away from Madrid as possible – in this case, in Cuba. The attempt failed and only alienated Espartero's colleague; instead, O'Donnell was given a seat in Espartero's cabinet as war minister, though his influence was greater than his portfolio.