According to rigveda, the history of somnath temple is the moon god who called somraj was first built this temple which made up of gold in Satyug. It was built by Krishna which made up of wood, ravan who was built this temple with silver and bhimdev with stone.It is devoted to lord shiva.