In the postwar years, Porto Alegre turned his attention to politics, retiring from his military career as a lieutenant general, the second-highest rank in the Imperial Army. He was an affiliate of the Liberal Party at the national level and was elected to the legislature of Rio Grande do Sul. He also founded a provincial party, the Progressive-Liberal Party—a coalition of Liberals like him and some members of the Conservative Party.