Première République espagnole
He later was elected member of parliament and was appointed minister in the cabinet of Pi y Margall during the First Spanish Republic but with the restoration of the monarchy he went into exile in Paris, France.