A warranty is a seller's promise that a product will perform as intended. The warranty tells what items the seller will pay to fix after the sale, and for how long. If a car comes with a warranty, you are entitled to get the warranty in writing from the dealership. Read the warranty carefully to learn what is covered, for how long, who pays for the repairs, and what you must do to keep the warranty in effect.
All new cars come with a manufacturer warranty.
Tires, batteries, and dealer-installed options may have separate manufacturer warranties. Some used cars come with a warranty. If the vehicle comes with remaining manufacturer warranty, consult the warranty book or ask the seller what you need to do to have the warranty transferred into your name. Many used cars come with no warranty at all. When you buy a car as-is, the dealer and manufacturer are not responsible for paying for repairs after the sale.