Temples from the period of Chenla bear stone inscriptions, in both Sanskrit and Khmer, naming both Hindu and local ancestral deities, with Shiva supreme among the former. The cult of Harihara was prominent; Buddhism was not, because, as reported by the Chinese pilgrim Yi Jing, a wicked king had destroyed it. Characteristic of the religion of Chenla also was the cult of the lingam, or stone phallus that patronized and guaranteed fertility to the community in which it was located.