Mahendravarman-I had accepted Shaivism after renouncing Jainism under the influence of Shaivite Saint Appar.