Who Gets Paid First When a Medicaid Recipient Dies -- the Mortgage Holder or the State?

The bank comes first. The mortgage is secured, and the property cannot be sold without paying the mortgage off. The state is paid after anyone whose secured position comes before the state. This can be the bank or other lienholder.