Legally a government tax lien on a property (for unpaid property taxes) is in first place, taking precedence over mortgage liens, however property taxes (at least here in California) can be unpaid for 5 years before the county can
foreclose. If the county forecloses on the property, they do not need to pay off the mortgage to gain title, however if a bank forecloses on the mortgage before the ...