Check the engine bay for chewed wires, nests, or droppings, and have a mechanic inspect any damaged wiring right away, since it can cause electrical problems or even a fire. To keep rats away, avoid leaving food inside the car, keep your parking area clean, and use rodent repellent sprays or deterrents made for engine bays. Starting and driving your car regularly also helps.