It's over for Zooey Deschanel and Ben Gibbard.

The "New Girl" star and indie rocker are separating after two years of marriage, their rep confirmed to Us Weekly.

Deschanel and Gibbard, who is in the rock band Death Cab for Cutie, were married near Seattle, Wash., in 2009.

Deschanel opened up to iVillage in July about her marriage to the rocker, who is often away on tour.

"You still have to make a commitment and think about that commitment every day," she said, adding that being married isn't too different than just being in a relationship. "It's not like you get married and then all the work is done for you. You get married and you're still in a relationship and you're still doing your best to make it the best relationship you can."

Gibbard, on the other hand, once made a bold statement about relationships.

"I would rather make great records than make great relationships," he wrote in an article for Paste magazine in 2008.

He later clarified his statement in May, telling Spinner he was in a bad place in his life back then.

"Romantic relationships had come and gone, friendships have grown and withered, but this band was constant," he said.

For more on Deschanel's split, head over to Us Weekly.

Loading Slideshow...
  • Seal & Heidi Klum

    (Getty)

  • Katy perry & Russell Brand

    (Getty)

  • Emma Roberts & Chord Overstreet

    (Getty)

  • Ashton Kutcher & Demi Moore

    (Getty)

  • Cameron Diaz & Alex Rodriguez

    (Bauer Griffin)

  • Jesse James & Kat Von D

    (WireImage)

  • Jennifer Lopez & Marc Anthony

    (WireImage)

  • Kate Bosworth & Alexander Skarsgard

    (WireImage)

  • James Franco & Ahna O'Reilly

    (Getty)

  • Hugh Hefner & Crystal Harris

    (Getty)

  • Renee Zellweger & Bradley Cooper

    (Bauer Griffin)

  • George Clooney & Elisabetta Canalis

    (Getty)

  • Lauren Conrad & Kyle Howard

    (WireImage)

  • Jason Mraz & Tristan Prettyman

    (Getty)

  • Kim Kardashian & Kris Humphries

    (Getty)

  • Christina Aguilera & Jordan Bratman

    (Getty)

  • Ashlee Simpson & Pete Wentz

    (Getty)

  • Maria Shriver & Arnold Schwarzenegger

    (Getty)

  • David Arquette & Christina McLarty

    (Getty)