 An outspoken adversary of the Spanish Constitution of 1812, he organized a rebellion against the liberal government in July 1822, and was forced to flee to France after its failure.He returned one year later in the footsteps of the French army under Louis-Antoine, Duke of Angoulême and participated in the restoration of the Absolute monarchy of King Ferdinand VII of Spain.As a reward, he was named Spanish ambassador in Paris, Lisbon and Berlin.