In the United States, all fifty states have a lemon law, but not all of them are the same. They usually have different documentations, requirements and benefits that are covered by the law. In the state of California, however, the CA Lemon Law is pretty cut and dry.
The CA Lemon Law basically allows the consumer to have an out if the car that he or she has just purchased turns out to be a "lemon." The CA Lemon Law is available if the car comes with a warranty released by the manufacturer (this criteria is available for used cars too), or if it is 18 months or 18,000 miles after the purchase. The customer needs to make more than two or three reasonable attempts to have the manufacturer or dealer fix the defects. In the state of California, "reasonable attempts" are equal to four attempts (two if it's a safety issue) or more than 30 days of loss of service in a period of a year and a half.
The law is very clear, so it shouldn't be a problem to realize if the car you own is under the CA Lemon Law. If you think that you have a case, though, it is just the beginning of a long process. When you reach the point where you qualify to pursue the CA Lemon Law, it will take up to 45 days until you will receive an answer. It helps to hire a specialized attorney to help the process go a bit more smoothly. The state of California doesn't require you to get one, but it is s wise decision.
Once you realize that you have real problems with your new vehicle, you will need documentation of any repairs (including invoices) in order to pursue the CA Lemon Law. Once you have proved that the CA Lemon Law covers your vehicle, then getting back all your money should be no problem. This includes the license and registration fees, taxes, car rentals and monthly payments.