Lincoln was the first Republican president, elected in 1860. He was a member of the Whig Party from 1832 to 1854 before there was a Republican Party . He was nominated by the National Union Party in 1864. This party was really just a name-change for the Republican party which was trying to attract anyone who did not want to end the war with a truce.