The lemon law is a state statute designed to protect consumers who purchase faulty vehicles by requiring manufacturers to repair or replace them after a specified number of failed attempts. If a car cannot be fixed, the manufacturer may need to provide a refund or exchange. Various states have different regulations regarding the lemon law, and often a warranty is necessary for the law to apply.