A man in Michigan pleaded guilty to lying to federal agents after he said he tried flying to Lebanon to join the terror group Hezbollah, but told the feds the purpose was to "get his teeth fixed."

Mohammad Hamdan, 24, entered the plea in federal court on Monday, the U.S. Attorney's office in Detroit announced. The charge could put him behind bars for more than five years.

Hamdan, from Dearborn, told a confidential FBI source that he was traveling overseas to join Hezbollah in order to fight in Syria, while at the same time lying to federal agents, according to officials.

He sold his house, gave a relative his car and packed up all his possessions before trying to leave, The Detroit News reported.

The U.S. classifies Hezbollah, a Shiite Muslim group in Lebanon, as a terrorist organization.

Officers arrested Hamdan in 2014 before he could board a flight at Detroit Metropolitan Airport.

Sentencing is scheduled for November.

"This investigation demonstrates the real threat of individuals residing in the United States who want to travel to Syria to fight on behalf of Hezbollah," David Gelios, special agent in charge of the FBI’s Detroit office, responded.

The Associated Press contributed to this report.