The 12th Amendment to the United States Constitution, ratified in 1804, established the procedure for electing the President and Vice President. It aimed to prevent issues arising from the original electoral process, where the candidate with the most electoral votes became President and the runner-up became Vice President, which could lead to political conflicts and inefficiencies in governance.