He reached Jollygrant airport this morning from where he directly came here, officials said.
Dressed in a traditional pahari outfit, Modi offered prayers at the
temple for around half-an-hour and undertook circumambulation of the shrine.
The town was devastated in a series of cloudbursts in 2013. This is Modi's fourth visit to the temple dedicated to Lord Shiva in the last two years. He will offer prayers at Badrinath on Sunday.
The portals of both the shrines were reopened for devotees after the winter break early this month.
Stringent security arrangements have been made for the prime minister's visit, DGP (law and order) Ashok Kumar said.
The Election Commission gave its nod to the visit while "reminding" the prime minister's office that the model code of conduct is still in force. Polling for the seventh and the last phase of the general election will be held Sunday.