One spouse could buy the other out and keep the house or the property could be sold and the proceeds divided to enable each of them to move on whether into another owned home or rented property.
Of course, the family home in any divorce will need to be valued, and a mortgage balance obtained from your lender to work out what the equity will be for distribution or for the remaining spouse to be able to raise the cash or finance to buy the other spouse out of the property.