The horizontal direction of the Earth's field was first measured in the fourth century BC but the vertical direction was not measured until 1544 AD and the intensity was first measured in 1791. At first, compasses were thought to point towards locations in the heavens, then towards magnetic mountains. A modern experimental approach to understanding the Earth's field began with de Magnete, a book published by William Gilbert in 1600.