Lincoln joined the Republican Party and challenged Stephen A. Douglas for the Illinois senate seat in 1858. In seven open-air debates across Illinois, Douglas portrayed Lincoln as an abolitionist fanatic, and Lincoln condemned Douglas's indifference to the moral wrong of slavery. Lincoln narrowly lost the election but gained national attention.