It looks like Jennifer Aniston and Justin Theroux had to put in a lot of effort into their relationship before getting married this past week. There's a new report that says even though the couple was living on different coasts for some time, they finally managed to make things work and tie the knot at the "right time."

Jennifer Aniston News 2015: Hollywood Actress Lands A New $5 Million Dollar Deal

According to People Magazine on Monday, Aniston tried to live with Theroux in New York City during the beginning of their relationship back in 2011, but missed Los Angeles too much to try and stay there permanently.

A source said, "Initially, "it wasn't easy for them to figure out ways to merge their lives," says the Aniston source. While Theroux enjoyed living in downtown Manhattan, Aniston tried to live in New York City early in the relationship, but realized that she prefers L.A. But they seem to thrive on being apart and doing their own thing."

Jennifer Aniston News 2015: Actress Says Love Triangle Between Her, Brad Pitt & Angelina Jolie Is All 'Made Up'

If that weren't hard enough, they also had to work on accepting each other's differences through their very different personalities.

The insider added, "Justin brings a very laid-back element to their relationship. He loves playing pranks and makes their relationship fun. He also is Jen's rock. He calms her down. And Jen is very attentive and nurturing."

The source also explained that it took Aniston and Theroux nearly three years to finally tie the knot because they simply couldn't decide on what kind of wedding they wanted.

Keep up with Enstars for all the latest news on Jennifer Aniston, Justin Theroux and your favorite celebrity couples.