Shen Kuo describes in the Mengxi Bitan (1088) the floating magnetic needle for navigation. The principle of terrestrial magnetism was known earlier in China (centuries of use of the sinan for geomancy), but Shen Kuo documents its navigational application. The compass reached the Arab world and Europe between the 12th and 13th centuries, making ocean navigation and the great voyages of discovery possible.