Your beneficiary would receive the death benefit payout from your life insurance policy, and the beneficiary could use those funds to pay of the remaining balance owed on your home loan, so the beneficiary could remain in your home.
Learn more about getting home life insurance to cover if death occurs.