Engine knocking or pinging is caused by uncontrolled combustion in the cylinders, often due to low-octane fuel, excessive carbon buildup, or a faulty ignition system. It’s harmful because it can lead to engine damage, including piston damage and premature wear. However, using the correct octane fuel and resolving underlying issues right away can prevent the knocking sound.