 After these posts, López also assumed other offices such as the Secretary of War and Navy, Ambassador of Colombia to the Vatican City State, Secretary of Foreign Relations, state advisor and senator.On 7 March 1849, López was elected President of Colombia with the support of the artisans and their democratic society clubs, having also taken advantage of the divisions among the conservatives.His government abolished slavery, created the agrarian law, supported the separation between church and state, freedom of the press and the federalization of the state.