A beach stroll by Prime Minister Benjamin Netanyahu and his counterpart Narendra Modi caused online waves on Thursday, with the two men seen wading barefoot into the surf together.

The beach trip came on the last day of Modi’s visit to Israel, the first-ever by an Indian prime minister. They had gone to the beach to see a demonstration of a mobile water desalination unit.

It was closed to journalists, but images and video were distributed by the Israeli government showing the two men walking together into the water barefoot at Olga beach in northern Israel.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

Some on social media took Netanyahu to task for not sufficiently rolling up his pant legs, with the images showing them getting wet. Others joked about a budding “bromance.”

Here, I fixed it for you. pic.twitter.com/5BXpY4dBxN — Elie Leshem (@elieleshem) July 6, 2017

Netanyahu later gave Modi a copy of the photo of their visit to the beach.

They later drove together in the mobile water desalination unit — which looked like a dune buggy — and sipped samples from wine glasses, even toasting before they did. A statement from the Prime Minister’s Office said the vehicle can provide up to 22,000 people with drinking water a day.

Modi and Netanyahu have sought to extend Indian-Israeli cooperation beyond the billions of dollars in defense deals between them during the three-day visit.

The two leaders presented a series of agreements for cooperation on satellite technology, water and agriculture, as well as the creation of a $40 million innovation fund.

נסעתי עם רה״מ מודי ברכב מיוחד להתפלת מים, שמסוגל לספק מי שתייה ל-22,000 איש ביום. ישראל מובילה בעולם במחזור מים. נשתף פעולה עם הודו בתחום זה pic.twitter.com/EJG361FZX4 — Benjamin Netanyahu (@netanyahu) July 6, 2017

Israel already sells India an average of $1 billion per year in military equipment. The country has also excelled at water and agriculture technology, which India has shown an interest in.

Modi’s visit marks 25 years since India and Israel established diplomatic relations.

Times of Israel staff contributed to this report.