Noah Baumbach and Greta Gerwig attend a special screening of “White Noise” hosted by Wes Anderson at The Soho Hotel on October 7, 2022 in London, England

Dave Benett/Getty

Greta Gerwigand her longtime partner,Noah Baumbach, are married, a representative for theBarbiedirector, 40, confirmed to PEOPLE.

A source told PEOPLE that the two got married at New York City Hall.

The couple first met while filming the 2010 movieGreenbergand began dating in 2011.

The news comes after a busy year for the couple whoco-wrote theBarbiescreenplayand announced that theyquietly welcomed a second sonin an interview withElle UKpublished in July.

Noah Baumbach and Greta Gerwig in 2010.Michael Caulfield/WireImage

HOLLYWOOD - MARCH 18: Writer/director Noah Baumbach and actress Greta Gerwig arrive at the Los Angeles Premiere of “Greenberg” at ArcLight Cinemas on March 18, 2010 in Hollywood, California

“I think the pleasure of writing for us is that it seeps into everything. I’d show her a cut of my movie, and then a few months later, I’m watching her movie. I don’t want to sound sickeningly happy, but it’s a truly great thing to watch someone you love make something and love the thing they make. I don’t know how else to say it without saying great a lot,” he told the outlet.

In 2020, both were individually nominated for Oscars in the same year. While Baumbach was nominated for Best Picture and Best Original Screenplay for his filmMarriage Story, Gerwig was nominated for Best Adapted Screenplay forLittle Women,which she also directed.

Greta Gerwig and Noah Baumbach at the 90th Annual Academy Awards.Kevin Mazur/WireImage

Greta Gerwig (L) and Noah Baumbach attend the 90th Annual Academy Awards at Hollywood & Highland Center on March 4, 2018 in Hollywood, California

While walking the red carpet together at the 2020Academy Awards, Baumbach told ABC’s Tamron Hall that Gerwig hadmade him a “better person and a better writer.”

“When we write together, I’m always trying to impress her. I feel like I write better because I work at it harder, I want her to be impressed,” he said.

In a Q&A with Gerwig in October, Baumbach opened up about how he hesitated to work onBarbiebut it laterbecame the “best thing we’ve ever written.”

Greta Gerwig and Noah Baumbach, both wearing Gucci, attend the 2019 LACMA Art + Film Gala Presented By Gucci at LACMA on November 02, 2019.Neilson Barnard/Getty

Greta Gerwig and Noah Baumbach, both wearing Gucci, attend the 2019 LACMA Art + Film Gala Presented By Gucci at LACMA on November 02, 2019 in Los Angeles, California

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

“I know enough always just to follow what Greta says, so even in my bellyaching and revolting, I kind of knew, ‘Well if she really believes it, then there’s something there,'” he said, according toVariety.

source: people.com