Hillary Clinton said former President Barack Obama was able to shatter the racial barrier due to his looks.

Speaking at Recode’s Code Conference on Wednesday, the former secretary of state said that misogyny played a part in her election loss to Donald Trump this past fall.

After the Democratic Party nominee implied that her being a woman cost her votes since she didn’t ‘look like and talk like and sound like everybody else who’s been president,’ she then mentioned Obama’s historic election in 2008.

‘And you know, President Obama broke that racial barrier, but you know, he’s a very attractive, good-looking man with lots of ...’ Clinton says before her interviewer, Kara Swisher, interjects.

Hillary Clinton (far right) said former President Barack Obama was able to shatter the racial barrier due to his looks. She answered questions at the Code Conference in Rancho Palos Verdes, California, on Wednesday with Kara Swisher (far left) and Walt Mossberg (center)

After Clinton implied that her being a woman cost her votes, she then mentioned Obama’s historic election in 2008. ‘And you know, President Obama broke that racial barrier, but you know, he’s a very attractive, good-looking man with lots of...'

‘Well, he’s likable enough,’ Swisher said – a reference to a line Obama uttered about Clinton during a debate in the middle of their 2008 primary battle.

‘He’s likable enough, absolutely,’ Clinton responded.

Clinton made the remark about Obama’s appearance after she was asked about her campaigning skills compared to those of her 2016 opponent, Trump.

The comment was similar to one made by then-Senator Joe Biden in 2007.

Clinton's remarks on Wednesday resurrected the ghosts of her primary loss to Obama in 2008, during which her campaign was accused of using racist undertones in attacking the then-senator from Illinois. Obama and Clinton are seen above in Los Angeles in 2008

Despite the bad blood, Obama named Clinton as his secretary of state during his first term in office. The former president also campaigned for Clinton during the most recent election season. The two are seen above during an election rally in Philadelphia on November 7, 2016

Biden, who at the time was a senator from Delaware, was gearing up to run against Obama and Clinton in the Democratic primary.

In discussing Obama, he told The New York Observer: ‘I mean, you've got the first sort of mainstream African-American who is articulate and bright and clean and a nice-looking guy. I mean, that's a story-book, man.’

Biden apologized for the comment.

Obama defeated Clinton in the bitterly contested Democratic primary.

Biden then joined Obama’s ticket as his vice presidential candidate.

When Obama entered the White House, he named Clinton secretary of state.

Clinton was accused of using racist overtones in her attacks on Obama during the 2008 campaign.

Obama officials accused the Clinton campaign of appealing to voters’ anti-Muslim bias by circulating an old picture of Obama dressed in Somali garb.

During the recent campaign, Trump referenced the 2008 primary in accusing Clinton of racist attacks against Obama, Politico reported.

Trump, of course, implied that Clinton’s gender disqualified her from being president because she didn’t have ‘a presidential look,’ according to The New York Times.

Despite the bad blood, Obama named Clinton as his secretary of state during his first term in office.

The former president also campaigned for Clinton during the most recent election season.