 The Pen Huo Qi (fire spraying machine; lit.spray fire device) was a Chinese piston flamethrower that used a substance similar to petrol or naphtha, invented around 919 AD during the Five Dynasties and Ten Kingdoms period.Advances in military technology aided the Song dynasty in its defense against hostile neighbours to the north, including the Mongols.