A lien is a legal claim or encumbrance against real property that is used as security for the payment of a debt or obligation.