Indian Prime Minister Narendra Modi and French President Emmanuel Macron in Paris | Charles Platiau/AFP via Getty Images Macron: France and India will cooperate against terrorism, climate change The countries share ‘common interests and a common vision,’ says newly elected French president.

Emmanuel Macron and Indian Prime Minister Narendra Modi pledged to work together on terrorism and climate change at their first bilateral meeting in Paris on Saturday.

The meeting, which came days after U.S. President Donald Trump withdrew from the Paris Agreement, was dominated by discussion of efforts to reign in climate change, which Modi called the "biggest" threat "facing humanity, along with terrorism.

"I believe the Paris agreement is a collective asset of the world, this will also be an asset to the coming generations," Modi said, according to a report by New Delhi TV. "It is our responsibility to protect mother earth."

India, the world's third-largest carbon emission generator, would continue to back the deal despite the U.S.' withdrawal, Modi said.

"We are both convinced that our countries have to do a lot for the ecological and environmental transition and the fight against global warming," Macron said, according to French media.

The French president, who responded to Trump's withdrawal by calling the Paris Agreement "irreversible," said France would surpass its Paris agreement commitments.

The two leaders also discussed ways to resist radicalization and combat terrorism on the internet, and pledged to deepen cooperation in areas such as defense, renewable energy and infrastructure.

"We share common interests and a common vision. In the next months and years, I hope we can work together. It's our common destiny," Macron tweeted.

The French president said he will travel to India this year for the first summit of the International Solar Alliance, a joint Indian-French initiative launched during the Paris climate talks in 2015.

For his part, Modi said, "I hope that the new energetic, visionary, young leadership of France gives new strength to the EU," Indian media reported.