<P> The episode was written by series creators and executive producers David Kohan and Max Mutchnick, and directed by James Burrows . Filming took place at CBS Studio Center in Studio City, California in April 2006 . The cast members took the news about the show ending well, but they became emotional as the final scene was being filmed . NBC heavily promoted the finale, and the main cast members appeared on The Oprah Winfrey Show and The Today Show to bid farewell . An hour - long series retrospective, "Say Goodnight Gracie", featuring interviews with the cast, crew, and guest stars, preceded the hour - long series finale . Since airing, the finale has received mixed reviews from television critics . </P> <P> Grace Adler (Debra Messing), heavily pregnant, is having bizarre dreams of the future in which she and her gay friend and roommate Will Truman (Eric McCormack) are an old couple raising their child . In her dream, Jack McFarland (Sean Hayes) is married to actor Kevin Bacon, and Karen Walker (Megan Mullally)--who has not aged (her explanation: "Money")--is now in a relationship with her maid Rosario Salazar (Shelley Morrison). In Grace's real life, however, her relationship with Will is complicated . Grace is not sure if she wants to spend the rest of her life living with Will . When her ex-husband Marvin "Leo" Markus (Harry Connick, Jr .) shows up and proposes to her--unaware she is pregnant with his child--she immediately accepts . Will feels betrayed, and stops speaking to her . </P> <P> Two years later, Grace moves with Leo to Rome and lives there for a year . They then move back to New York City, where they raise their daughter, Laila . Will and Vince D'Angelo (Bobby Cannavale) have since reconciled, and are raising a son, Ben . Karen and Jack grow tired of the fact that Will and Grace are not speaking with each other, so they lure them to the same place and force them to make up . The four meet at Will and Vince's apartment, and even though Will and Grace have a pleasant evening together, they find that too much has changed between them, and drift apart . </P> <P> Meanwhile, Karen finalizes her divorce from Stan, but soon finds out that all his money was borrowed and that she will be left with nothing . When learning that Beverley Leslie (Leslie Jordan) and his "business associate" Benji (Brian A. Setzer) have broken up, Karen plots to have Jack take Benji's place, after Jack confesses that Beverly offered to share his entire fortune with him . When Beverly dies after being blown off a balcony from high winds, Jack inherits all of his money . </P>

Who does will marry in will and grace
find me the text answering this question