With Bolivian help, General Orbegoso quickly regained his leadership throughout the country and had Salaverry summarily executed. In retribution to the support he received from Santa Cruz, he acceded to the formation of the new Peru–Bolivian Confederation. Santa Cruz assumed the Supreme Protectorship of the confederation and Orbegoso maintained only the presidency of the newly created Republic of North Peru.