Mike Huckabee said in a speech Tuesday in Iowa that his opposition to gay marriage doesn't make him homophobic and that he has no problem with people engaging in same-sex relationships.

"I'm not against anybody; I'm really not," Huckabee said at an event put on by the Faith and Freedom Coalition, according to video from CNN. "I'm not a hater. I'm not homophobic. I honestly don't care what people do personally in their individual lives."

Huckabee said people point out that opposition to gay marriage could put people on the "wrong side of history" -- comparing it to opposition to the civil rights movement.

The former Arkansas governor, preacher and potential 2016 presidential candidate says, whatever the polls say, he needs to follow the Bible.

"This is the right side of the Bible, and unless God rewrites it, edits it, sends it down with his signature on it, it's not my book to change," Huckabee said.

Huckabee is a leading favorite of social conservatives and won the Iowa caucuses in 2008.

In a 2010 profile, Huckabee also addressed gay marriage and its "ick factor."

“Male and female are biologically compatible to have a relationship," he told the New Yorker. "We can get into the ick factor, but the fact is two men in a relationship, two women in a relationship, biologically, that doesn’t work the same.”