This was originally a shiva temple and over time Lord Muruga has become popular.
This was created for the Holy Trinity by Vichitrachita (Mahendravarman I).
Where there is a hill, there is Muruga. This is a beautiful hill temple for Lord Muruga.