The moderates held political sway from 1844 to 1868, apart from the gap when the progressives were in power from 1854 to 1856. In 1859, the government began a policy of intervention overseas, with military ventures in Morocco and Mexico, in which General Joan Prim played a notable part. In 1868, the uprising known as the Glorious Revolution, in which progressives, democrats and Republicans took part, overthrew Isabel II. Prim was, until his assassination, the strong man of the new regime, a failed attempt to restore a royal dynasty with Amadeo I of Savoy. Social upheaval opened the way for the Republic.