The earliest known oil wells were drilled in China in 347 AD or earlier. They had depths of up to about 800 feet (240 m) and were drilled using bits attached to bamboo poles.[2][unreliable source?] The oil was burned to evaporate brine and produce salt. By the 10th century, extensive bamboo pipelines connected oil wells with salt springs. The ancient records of China and Japan are said to contain many allusions to the use of natural gas for lighting and heating. Petroleum was known as burning water in Japan in the 7th century.[1] In his book Dream Pool Essays written in 1088, the polymathic scientist and statesman Shen Kuo of the Song Dynasty coined the word 石油 (Shíyóu, literally "rock oil") for petroleum, which remains the term used in contemporary Chinese.