Justin Timberlake will guest star in a gay role on Fox's The Cleveland Show, Us Weekly reported.

The 29-year-old entertainer will voice a gay character that falls in love with Cleveland's co-worker Terry Kimple.

Co-creator Rich Appel talked about the upcoming episode during San Diego Comic-Con, the four-day convention of science fiction/fantasy and animation.

“Terry falls in love with a guy voiced by Justin,” Appel said.

“Justin is just hysterical,” he added.

Saturday Night Live comic actor Daniel Jason Sudeikis provides the voice of Terry Kimple.

Timberlake is best known as one of the former lead singers of the popular 1990s boy band 'N Sync, which included Lance Bass, who has since announced he's gay.

More recently, Timberlake can be seen in the upcoming film The Social Network, set to hit theaters in October, and opposite Cameron Diaz in next year's romantic comedy Bad Teacher.

The Cleveland Show, the first spinoff from Fox's animated comedy Family Guy, has received mixed reviews since its 2009 debut. It returns for its second season on Sunday, September 26. The episode starring Timberlake is scheduled to air in February.