In the traditional version, a king was thought to enjoy, whether he was alive or not, a special relationship with a particular deity-- usually Siva, more rarely Vishnu, occasionally the composite of eventually dedicated. The kings used this special relationship to explain their grandeur while subjects assumed that the relationship had something to do with the provision of adequate rainfall.