In cases of divorce, the house is of equal property to either spouse. The only time things really get complicated is when children are involved. The court prefers that the children be able to stay in the home with the custodial parent. So in theory whoever gets physical custody may get to keep the house.