 Democrat Barack Obama received 62 percent of the Leon County vote in the 2008 presidential election, but Republican John McCain received 54 percent of the 2nd district's vote overall.The district had become somewhat friendlier to Republicans when conservative-leaning Panama City was shifted from the 1st District.The district was significantly redrawn in a court-ordered redistricting that took effect for the 2016 election, following a lawsuit that challenged the district as gerrymandered, preventing African Americans from being able to elect representatives of their choice although they comprised a significant part of the population in the state.