If a car catches fire, the following safety measures should be taken:
- Pull over to a safe location and turn off the engine.
- Exit the vehicle immediately and move away from it.
- Call emergency services and do not attempt to put out the fire yourself.
- Do not open the hood as it can worsen the fire.
- Stay a safe distance away from the vehicle until help arrives.