Although there was a General Congress intended to draft a constitution, the beginning of the War with Brazil led to the immediate establishment of the office of President of Argentina; with Rivadavia being the first to be named to the post. Argentina's Constitution of 1826 was promulgated later, but was rejected by the provinces. Strongly contested by his political party, Rivadavia resigned and was succeeded by Vicente López y Planes.