Kim Zolciak is ordered to live in her BASEMENT while

Kim Zolciak is ordered to live in her BASEMENT while her estranged husband Kroy Biermann is allowed to stay in the bedroom as the judge decides living arrangements amid an ugly divorce battle

Kim Zolciak may be late to the party as she has to make her way there from the basement of her own house.

According to court documents obtained by TMZ on Wednesday, the 45-year-old Real Housewives Of Atlanta alum was ordered by a judge to live on the ground floor of her Georgia mansion amid her ugly divorce battle with her estranged husband Kroy Biermann.

To keep the peace while the couple still has a home together, the judge ordered Kim to stay in the basement/nanny’s quarters while the former NFL star would stay upstairs in the master bedroom.

“Neither party may enter the other party’s individually assigned room in the matrimonial home without permission,” the documents state, the outlet said.

However, Kim and Kroy are allowed to move freely around common areas such as the kitchen and living room in the seven-bedroom, 11-bathroom home, which they purchased for $880,000 in 2012 and is now on the market for $6 million .

Basement apartment: Kim Zolciak has been ordered by a judge to live on the ground floor of her Georgia mansion amid the ugly divorce battle with her estranged husband Kroy Biermann

Basement apartment: Kim Zolciak has been ordered by a judge to live on the ground floor of her Georgia mansion amid the ugly divorce battle with her estranged husband Kroy Biermann

Above: To keep the peace while the two still have a home together, the judge ordered Kim to stay in the basement/nanny's quarters while the former NFL star will stay upstairs in the master bedroom

Above: To keep the peace while the two still have a home together, the judge ordered Kim to stay in the basement/nanny’s quarters while the former NFL star will stay upstairs in the master bedroom

Living quarters: The judge's order comes just days after Kim and Kroy officially put their lavish Georgia mansion on the market ahead of a planned foreclosure in November

Living quarters: The judge’s order comes just days after Kim and Kroy officially put their lavish Georgia mansion on the market ahead of a planned foreclosure in November

The judge also ordered the couple to be civil toward one another to protect the couple’s four young children – Kroy “KJ,” 12, Kash, 11, and twins Kaia and Kane, nine.

“Neither parent shall disparage the other parent in the presence or within earshot of the minor children,” the documents state.

Another provision stated that neither parent could monitor the other parent’s time with the children and the children could not be used as messengers between the parents.

Kroy had also legally adopted Kim’s two daughters from a previous relationship: Brielle, 26, and Ariana, 21

The judge’s order comes just days after Kim and Kroy officially put their lavish Georgia mansion on the market ahead of a planned foreclosure in November.

The home, which was featured on the Bravo spinoff series “Don’t Be Tardy,” features 7 bedrooms, 11 bathrooms, and amenities like a swimming pool, wine cellar, arcade, and movie theater.

There has been drama surrounding the couple’s home in the past, with the property mistakenly listed for $3.2 million earlier this month.

Her home was reportedly foreclosed on in February and is scheduled to be auctioned off in March. However, Kim denied the claims and an insider told People at the time that the couple had taken “action” to resolve any issues.

Harsh words: “Neither party may enter the room in the marital home individually assigned to the other party without permission,” the documents say

Harsh words: “Neither party may enter the room in the marital home individually assigned to the other party without permission,” the documents say

Run around freely: Kim and Kroy are allowed to move freely in the common areas such as the kitchen and living room

Run around freely: Kim and Kroy are allowed to move freely in the common areas such as the kitchen and living room

Big purchase: Kroy and Kim bought the home in 2012 for $880,000 and is now on the market for $6 million

Big purchase: Kroy and Kim bought the home in 2012 for $880,000 and is now on the market for $6 million

In legal documents filed by Kroy in September, the former Atlanta Falcons player asked the court for permission to put the family’s Milton, Georgia, mansion on the market, saying it was near foreclosure.

The NFL alum made allegations against Kim after she called the police at their Milton, Georgia, mansion on May 4 ahead of his initial divorce filing.

The allegations about Kim’s gambling losses were seen in bodycam video from the Milton Police Department after officers responded to the home after Kim reported a domestic dispute.

During the incident, Kim told police that Kroy locked a cache of $175,000 worth of valuable items she owned – including designer handbags and jewelry – in a safe and hid the key from her.

Kroy said he believes the many items fell under the community property classification, adding of the items, “The problem is they are assets, there are none.” [other] Assets to go to.’

For the children: The judge also ordered the couple to be polite to one another to protect the couple's four young children - Kroy

For the children: The judge also ordered the couple to be polite to one another to protect the couple’s four young children – Kroy “KJ,” 12, Kash, 11, and twins Kaia and Kane, nine

Within earshot: “Neither parent shall disparage the other parent in the presence or within earshot of the minor children,” the documents state

Within earshot: “Neither parent shall disparage the other parent in the presence or within earshot of the minor children,” the documents state

He also told officers that they continued to sleep in the same bed but were not engaging with each other.

In July, it was revealed that the reality TV couple had decided not to separate and had withdrawn their divorce papers from Fulton County Superior Court in Georgia. They were spotted just before attending a church together in Atlanta.

Following the second divorce filing, a source told People earlier this month that both Kim and Kroy are “still under the same roof,” but revealed that all is far from well, adding, “Right now a money war.”

Even though they were living together, the insider explained that the estranged couple is “not trying to get back together.”

During the first two months of the separation – during which both petitioned the court for sole custody of their four younger children – Kim and Kroy argued with each other in court documents.

Kim said that Kroy smoked marijuana, which made his ability to raise their children believable; while Kroy claimed that Kim’s gambling habits had consumed her time and decimated the family finances.