After a bitter nine-month-long divorce battle, Melanie “Mel B” Brown and Stephen Belafonte are officially dunzo. The pair finalized their divorce on Dec. 15, according to documents obtained by ET, and it sounds like the nightmare is finally coming to an end.

Luckily, Mel will get joint legal custody of her 6-year-old Madison and doens’t have to pay child support. However, she will have to give her ex $15,000 per month in spousal support until Dec. 1, 2020. Meanwhile, Stephen was ordered to destroy all of the “compromising” videos and photos he claims to have of Mel.

Though their split has been particularly messy, Life & Style learned exclusively that on Nov. 8, had a breakthrough in their bitter divorce battle — they reached a settlement.

In October, Mel’s lawyers said in court that Stephen had at least 56 videos (many of a “sexual nature”) in his possession. Now he has to keep them all private. “Stephen agreed to not release any of the videos he had shot of Mel, including sex tapes, and there are strict provisions in the agreement to enforce that,” the insider reveals.

mel b stephen belafonte getty

Back in July, a judge ordered Mel to pay her ex $40,000 a month in temporary spousal support and another $140,000 in attorney’s fees. Moving forward, “Mel and Stephen will split the proceeds from the sale of their mansion and he will receive $15,000 a month in support for five years,” says the insider. “She also agreed to pay his legal fees, which were around $100,000.”

He’ll also get more time with their daughter, Madison, 6. “He had supervised visitation with Maddy during the divorce proceedings,” the insider explains. “Now Stephen will be allowed to have overnight unsupervised visits with her, which is a huge win for him.”

Mel signed off on the settlement, but the insider says she’s unhappy with the terms. While she was put through the wringer, says the insider, she feels Stephen, 42, got “an amazing deal.” The source adds, “Mel’s drawn-out and bitter divorce is finally over.”

For more on this, pick up the new issue of Life & Style magazine on newsstands now!