A mechanic's lien is a legal claim against a property by a contractor or subcontractor who has supplied labor or materials for work on that property and has not been paid. This lien ensures that the contractor can secure payment by potentially forcing the sale of the property if the debt remains unpaid.