Title insurance protects both buyers and lenders against liens and title defects.