Joshua Jackson played a devious gay character who hooked up with a guy for the purpose of outing him in Cruel Intentions.
Early in his acting career, Will Smith received critical accolades for portraying a gay character in Six Degrees of Separation.
Shay Mitchell portrays the lesbian character Emily on Pretty Little Liars, whose family struggles with her sexuality.
Blaine proposed to his boyfriend on Glee, but his alter ego Darren Criss is straight.
Naya Rivera plays lesbian character Santana on Glee, but in real life she's engaged to rapper Big Sean.
Andy Samberg played the ironically masculine, even bro-y gay younger brother of Paul Rudd's character in I Love You, Man.
Paul Rudd himself played a gay best friend whom Jennifer Aniston's character developed feelings for in The Object of My Affection.
Rashida Jones and Zooey Deschanel played a lesbian couple in My Idiot Brother.
While his on-screen husband is gay in real life, Modern Family star Eric Stonestreet is straight.
Olivia Wilde's character served as a lesbian experimentation for Marissa Cooper on The OC.
Adam Pally played perhaps the least stereotypical gay character on TV on Happy Endings.
He played one of the most iconic gay characters in television history, but Will & Grace star Eric McCormack is married to a woman.
Straight actors Jake Gyllenhaal and Heath Ledger played a passionate couple in the Oscar-nominated Brokeback Mountain.
While it may be pretty typical to see a gay character on television or in movies these days, there was a time (not long ago!) when such a portrayal was seen as a brave career move by an actor. Here are a few who have played against type!