Conservative Democratic Rep. Gene Taylor (Miss.) said over the weekend that voted against his own party when he went to the ballot box to vote for president in 2008.

Taylor told the Sun Herald of South Mississippi that he chose Sen. John McCainJohn Sidney McCainLawmakers worry about rise of fake video technology Democrats put Dreamers and their party in danger by playing hardball Trump set a good defense budget, but here is how to make it better MORE (R-Ariz.) for president over then-Sen. Barack ObamaBarack Hussein ObamaOvernight Energy: Dems ask Pruitt to justify first-class travel | Obama EPA chief says reg rollback won't stand | Ex-adviser expects Trump to eventually rejoin Paris accord Overnight Regulation: Trump to take steps to ban bump stocks | Trump eases rules on insurance sold outside of ObamaCare | FCC to officially rescind net neutrality Thursday | Obama EPA chief: Reg rollback won't stand Ex-US ambassador: Mueller is the one who is tough on Russia MORE (D-Ill.)

Reporter Maria Recio told The Hill that when Taylor was asked if he voted for the Democratic nominee in 2008, he said, "I did not vote for Obama. I voted for Sen. McCain. Better the devil you know."

Like other conservative Democrats, the 11-term congressman has spoken out against party leaders such as House Speaker Nancy Pelosi (Calif.) during his reelection campaign and has argued the leadership has been too liberal. 

The congressman's comments illustrate the extent to which he and other conservative and Blue Dog Democrats have gone to show they are independent of their party's leaders. 

McCain won Mississippi 56-44 percent in 2008, and he enjoyed strong support in Taylor's conservative district.

Taylor's race against Republican state Rep. Steven Palazzo has narrowed in recent weeks. Palazzo has tried to tie Taylor to Pelosi by arguing he has voted with her 82 percent of the time. Taylor voted for Pelosi in 2007 and 2009, but he did vote against the California Democrat for party leader in the past.

Once thought to be a relatively safe district for Democrats, the nonpartisan Cook Political Report now rates the race between Taylor and Palazzo a toss-up.  

Taylor has already said he will not support Pelosi for speaker again and said he would back Missouri Rep. Ike Skelton (D). Skelton's office has said he is not seeking the speaker's gavel.