What does a lien on real property accomplish?

The property cannot be sold or mortgaged until the lien has been paid.