Lincoln worked as a boatman, store clerk, surveyor, militia soldier, and became a lawyer in Illinois. He was elected to the Illinois Legislature in 1834, and was reelected in 1836, 1838, 1840, and 1844. In 1842, Lincoln married Mary Todd; the couple had four sons.