It was settled by Croatsinthe 7thcentury, becameakingdom in the 0thcentury, and reachedthe height ofitspower in the th century beforebeingconquered by Hungaryin 09.
The deity's figure is identified with the rice spirit that had been worshipped by the original people of Bali, before Indian traders brought the Hinduism that became widespread in the7thcentury.