When in 1852, Logan was elected to the Illinois House of Representatives, where he spearheaded and won the campaign to create the state's harsh Black Codes, which made it difficult for African Americans (freed or runaway) to move to the state. No African American from another state could even remain in Illinois for longer than ten days. Moreover, African Americans assembling in groups of three or more were subject to floggings or jail. They could also not testify in court in the case of any dispute.1
However, when the Civil War began, Logan surprisingly rallied the Southern Illinois population toward the Union side, despite talks in Little Egypt of even joining the secession. Logan was key in bringing the area into the Union side.
Logan's feats as a General in the Union Army are impressive, but equally impressive is a change that occurred. When Lincoln began campaigning for his second term, Logan supported him as fiercely as he had once opposed him. Following the war, Logan was far from the Southern Democrat he once. As a Republican, he began to push for Black rights, such as the right to hold public office, the right to vote, and the right to a formal education. He eventually sought the Republican presidential candidacy, backed even by Frederick Douglass. However, his unexpected death on December 16, 1886 never allowed him to begin that campaign.