Canada's Justin Trudeau and Israel's Benjamin Netanyahu also toured the Mughal-era monument during their tour of India this year.
The sale of tickets for visitors was closed after 3 pm on Sunday and the monument was shut for public at 4 pm.
Earlier in the day, the French President announced an additional 700 million euros investment for solar-energy at the first International Solar Alliance (ISA) summit in Delhi.
After his visit to Agra, President Macron will head to Varanasi, the parliamentary constituency of Prime Minister Narendra Modi, on March 12. He, along with PM Modi, will inaugurate a solar plant in Uttar Pradesh's Mirzapur district.