This comes as he pledged in 2015, through a $2.5bn scheme, that all Indian households would have electricity by December 2018.
Under this scheme, all 597,464 inhabited villages, and more than five million households have been connected to the grid.
A village is considered electrified if 10% of its homes and all public buildings are connected.
However, World Bank figures show around 200 million people in India still do not have access to electricity.
The prime minister said on Twitter that the Leisang village in the Northeast became the last village to be connected to the grid.
28th April 2018 will be remembered as a historic day in the development journey of India. Yesterday, we fulfilled a commitment due to which the lives of several Indians will be transformed forever! I am delighted that every single village of India now has access to electricity.
— Narendra Modi (@narendramodi) 29 April 2018
But some people have said in response to Modi’s tweet that their villages, around the country, are not connected to the grid, despite government claims.
India is the world’s largest producer and consumer of power, though distribution of this has been a challenge.