"Thank you Mexico. A new era in India-Mexico ties has begun and this relationship is going to benefit our people and the entire world," Modi tweeted.
"Five days, five countries! After a productive visit to Mexico, the last leg of his journey, PM departs for Delhi," External Affairs Minister Vikas Swarup tweeted.
The tour, that began on June 4, saw Modi visiting Afghanistan, Qatar, Switzerland, the US and Mexico with an aim to bolster ties. Besides addressing a joint sitting of the US Congress, Modi received the backing of two key Nuclear Suppliers Group members - Switzerland and Mexico - for its bid to secure the membership of the 48-nation bloc.
He also held wide-ranging talks with President Barack Obama at the White House following which the US recognised India as a "major defence partner".