A mechanic’s lien is a legal claim for unpaid construction work. When a contractor or subcontractor files a mechanic’s lien, they gain a security interest in the home or property.