By this time Lincoln was well-known in Illinois politics. In 1858 he had debated Stephen A. Douglas in a bid for the United States Senate and lost. At the time, U.S. senators were elected by their state legislatures. So both Lincoln and Douglas were trying for their respective parties to win control of the Illinois legislature. Although Illinois was a free state, the main issue of all seven debates was slavery.