The White House hopeful said that Mahatma Gandhi's active role in India's Independence movement has "inspired generations of young people around the world to pursue freedom in their own countries."
"As freedom faces challenges in many parts of the world, his (Gandhi's) example is even more relevant. This enduring legacy is one of the great gifts of India's revolution," Obama said in his Independence Day message on Thursday.
America and India share many common goals and interests and the US is New Delhi's largest trading and investment partner, Obama said.
"Both countries, India and America, are working to protect their people and values of 21st century threats while at the same time respecting the rule of law and cultural pluralism," he said.
Lauding the role of Indian Americans in America's strengthened relationship with India, Obama said "Indian Americans have been strong contributors to the local communities they have settled in and around the country."
"Indian Americans balance their love of the homeland with a strong commitment to America, and their knowledge, skills, values and entrepreneurial spirit have immeasurably benefited both countries. These efforts have played a significant role in creating a blueprint for bilateral relations that bring our nations closer," the Illinois Senator said.