The Hindu sects Saivism and Vaishnavism became more dominant, with temples being built and Dravidian architecture being supported by empires replacing the significance of Nastik Jainism and Buddhism of the previous era. Some of the output of villages throughout the kingdom was given to temples that reinvested some of the wealth accumulated as loans to the settlements.