If the parties are unable to reach an agreement on their own and neither spouse wants to sell the house, they will need to make a court application. The court will then determine which spouse gets to stay in the house.