Maggie Gyllenhaal, who’s appeared on New York stages multiple times but never on Broadway, will make her Main Stem debut this fall, starring opposite Ewan McGregor in the upcoming Roundabout Theater Company revival of “The Real Thing.”

Gyllenhaal will play the role of the other woman in Tom Stoppard’s 1982 play, about a playwright (the previously announced McGregor) who leaves his wife for their mutual friend Annie (Gyllenhaal). The role of the playwright’s wife remains to be cast in the staging, which is helmed by Sam Gold (“Seminar”).

Gyllenhaal’s Off Broadway work has included Classic Stage Company revivals of “Uncle Vanya” and “Three Sisters,” and in the spring she’ll topline the MCC production of “The Village Bike.” Her upcoming screen credits include BBC/Sundance series “The Honourable Woman” and Lenny Abrahamson’s film “Frank” with Michael Fassbender.

“Real Thing,” which begins previews Oct. 2 ahead of an Oct. 30 opening, occupies the fall slot in the Roundabout’s American Airlines Theater. The next show in that space, “Noises Off,” also has lined up initial casting, with Andrea Martin, who picked up a Tony in the spring for her perf in “Pippin,” tapped to star in the backstage farce. That show is on track to begin previews at the American Airlines in January.