As the Whig Party collapsed, the Republicans became one of two major political parties in the United States (the Democratic Party was the other major political party). In 1860 Abraham Lincoln, the first Republican president, was elected. For the rest of the second half of the 19th century, the country had mostly Republican presidents. From 1860 until 1912 the Republicans lost the presidential election just twice (non-consecutively to Democrat Grover Cleveland in 1884 and 1892).