While the Puranas use the allegory of Rahu and Ketu swallowing the sun, astronomers like Aryabhata (5th century) explicitly wrote that eclipses are caused by the shadows cast by the Earth and the Moon, entirely divorcing the phenomenon from superstition.