A good prenup has its advantages.

Following the announcement that Tom Brady and Gisele Bündchen have finalized their divorce, Page Six reported on details about the couple’s prenuptial agreement and divorce settlement.

READ MORE: Tom Brady Wanted To Make His Marriage To Gisele Bündchen Work, ‘Didn’t Want The Kids To Have Divorced Parents,’ Source Says

According to a source, “There was an ironclad prenup set down before they married in 2009. They both have their own separate business entities, so the separation of their wealth wasn’t that complicated in the end. The only other major factor was dividing up their massive property portfolio.”

Sources also told the outlet than under the terms of the divorce, Brady will keep the couple’s $17 million mansion, which is still under construction on “billionaire’s bunk” Indian Creek Island in Miami.

READ MORE: Gisele Bündchen Bought A $1.2 Million House Months Before Tom Brady Split: All The Details

Meanwhile, Bündchen recently purchased her own $1.25 million home in Miami Beach, which sources say she will likely use largely as an office. She will also keep their home Nicoya Peninsula in Costa Rica, a regular vacation spot for the family.

The couple, who wed in 2009, spent recent months living apart before announcing last week that they had split. Details about how to divide their properties were reportedly settled prior to the divorce.