PM Modi and Angela Merkel met in Osaka on the sidelines of the G-20 summit. (PTI photo)

Prime Minister Narendra Modi on Friday met German Chancellor Angela Merkel and discussed ways to deepen the Indo-German relations and enhance cooperation in areas like artificial intelligence and cyber security.

The two leaders met in this Japanese port city on the sidelines of the G-20 summit.

"Further enriching a cherished friendship. PM @narendramodi met Chancellor Merkel of #Germany on the margins of #G20OsakaSummit. Discussed enhancing cooperation in artificial intelligence, E-mobility, cyber security, railway modernisation & skill development. @eoiberlin," Ministry of External Affairs spokesperson Raveesh Kumar tweeted.

Chancellor Merkel also congratulated PM Modi on the recent electoral victory, the Prime Minister's Office said in a tweet

"Giving impetus to friendship with Germany. Chancellor Merkel and PM @narendramodi discuss ways to diversify and deepen India-Germany ties," the PMO tweeted.

Germany is India's largest trade partner in the 28-member European Union bloc.

In 2016-17, the bilateral trade turnover was $18.76 billion, with India exporting goods worth $7.18 billion to Germany and importing German products worth $11.58 billion, according to German media.