Vice President Hamid Ansari, former Prime Minister Manmohan Singh and senior BJP leader L K Advani also paid tributes to the Father of the Nation.
"Gandhiji made this world a better place. His ideals, dedication to the poor & struggle against injustice inspire," the Prime Minister said in a tweet.
Clad in a white kurta and pyjama, Modi, who arrived at 7:40 AM, paid homage to the Mahatma by offering rose petals at his memorial and performing a 'parikrama' (circumambulation) around it.
Union Ministers M Venkaiah Naidu and Rao Inderjit Singh, and Congress leader Ghulam Nabi Azad too joined in paying homage to the Father of the Nation.
Ambassadors of several countries and other dignitaries attended the function. A large number of school children had also gathered at the venue to pay homage.
An all-faith prayer meeting was held on the occasion.