The Kathāsaritsāgara is a famous 11th-century collection of Indian legends, fairy tales and folk tales as retold in Sanskrit by a Shaiva named Somadeva.