President Donald Trump became the first sitting U.S. president to visit the Western Wall on Monday. And he did so by maintaining the strict gender boundaries that govern this historic and holy space.

The president, currently stopping in Israel and the West Bank during his first official trip abroad, visited the wall with Melania Trump, his wife, and his daughter and son-in-law, Ivanka Trump and Jared Kushner, who are both Orthodox Jews.

According to Haaretz, the family arrived at the site together but split up to visit different sections of the wall. Trump and Kushner visited the men’s prayer plaza together, accompanied by the religious custodian of the site, Rabbi Shmuel Rabinowitz, and Mordechai Eliav, director-general of the Western Wall Heritage Foundation. The president approached the wall wearing a yarmulke and touched the stones with his right hand before slipping a note into the cracks.

Ronen Zvulun / Reuters U.S. President Donald Trump touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City May 22, 2017.

He later told journalists that visiting the site was a “great honor.”

“I can see a much deeper path, friendship with Israel,” Trump said, according to NBC.

In the meantime, Melania and Ivanka visited the women’s section, which is separated from the men’s plaza by a barrier.

In a tweet, Ivanka said that it was “deeply meaningful to visit the holiest site of my faith and to leave a note of prayer.” She converted to Judaism before marrying her husband.

POOL New / Reuters Ivanka Trump prays as she touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City May 22, 2017.

The Western Wall is one of the holiest sites in the world for Jewish people. The wall, which dates from around the 2nd century BCE, is believed to be the remains of an ancient Jewish temple complex at the site.

Israel’s Orthodox religious establishment enforces strict restrictions at the site that prevent men and women from praying together. Women at the wall are also banned from reading aloud from the Torah and wearing traditional Jewish prayer shawls.

Worshippers at the Western Wall aren’t allowed to bring their own Torah scrolls into the prayer site. The Orthodox Jewish organization that runs the site makes Torah scrolls available in the men’s section, but the scrolls aren’t available to women.

POOL New / Reuters U.S. first lady Melania Trump prays as she touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City May 22, 2017.

Just last week, hundreds of Reform Jews defied prayer restrictions with a mixed-gender prayer protest at the holy site. The protestors brought in their own Torah scrolls.

The gender restrictions at the wall apply to female reporters covering the president as well. Glenn Thrush‏, a New York Times White House correspondent, tweeted that female journalists were separated from male journalists at the religious site. The reporters who followed former President Barack Obama during a visit to the Western Wall during the 2008 campaign were also asked to follow similar guidelines, according to Politico.

For the second time in three days poolers are excluded from an event because they are women. pic.twitter.com/9hNvkiM031 — Glenn Thrush (@GlennThrush) May 22, 2017

In January 2016, the Israeli government approved a plan to replace a temporary ramp that has been used in the past for egalitarian prayer services with a permanent and larger plaza for mixed-gender praying. The approval of that space was initially hailed as a victory, but critics claim the plan hasn’t resulted in equality at the site.

MENAHEM KAHANA via Getty Images Israeli members of the liberal Jewish religious group Women of the Wall, carry a Torah scroll after prayers in the women's section of the Western Wall, in the Old city of Jerusalem on November 2, 2016, during a protest by the group demanding equal prayer rights at the site.

Rabbi Rick Jacobs, president of the Union for Reform Judaism, told HuffPost that it was “stirring” to see the American president pausing to reflect at Judaism’s holiest site. But he urged the president to take concrete actions towards creating peace in the region.

“President Trump has said over and over that he is looking to help shape ‘the ultimate deal.’ We welcome his leadership, and urge him to help craft a process, and then an agreement, that guarantees peace, security and basic rights for both Israel and the Palestinians,” he wrote in an email to HuffPost.

Jacobs said that the gender separation of the Trump family at the Western Wall, also referred to as the Kotel, didn’t come as a surprise.

“As expected, the President and his family visited the Western Wall according to US protocol,” Jacobs wrote. “We have been in touch with the new US Ambassador about the Kotel issue—and the issues of religious pluralism in Israel more generally—and we sincerely hope that we get continued US encouragement regarding the enfranchisement of the majority of world Jewry in Israel, whether it is at the Kotel or elsewhere in Israel.”