A spark plug is a device used in internal combustion engines to ignite the air-fuel mixture by producing a spark. It is essential for starting and running gasoline-powered vehicles and machinery.