Maggie Gyllenhaal Maggie Gyllenhaal

Maggie Gyllenhaal is going from The Honorable Woman to a lady of the night.

The actress has signed on to The Deuce, David Simon's upcoming HBO drama about the rise of the porn industry in New York City, according to The Hollywood Reporter. She'll play Eileen Merrell, aka "Candy," a Times Square prostitute. Gyllenhaal is also producing, along with James Franco, who is starring as twin porn kingpins.

The Deuce, set in New York in the 1970s and '80s, chronicles the legalization of porn amid the rise of HIV and the cocaine epidemic. It is scheduled to begin filming next month and is expected to premiere on HBO next year.