trump wall
A section of the wall separating Mexico and the United States is seen, in Tijuana, Mexico, Jan. 28, 2017. REUTERS/Jorge Duenes

Israeli Prime Minister Benjamin Netanyahu’s tweet in support of U.S. President Donald Trump’s plan to build a wall along the border with neighboring country Mexico has not gone down well with the Mexican government.

Israeli ambassador to the country, Jonathan Peled, was summoned by Mexico after Netanyahu’s post on Twitter lauded Trump’s border wall plans, noting the success of a similar wall along the southern border of his country that he said curbed illegal immigration.

The Mexican government and leaders of the Jewish community in Mexico were quick to call out the Israeli prime minister on his comments.

“The Foreign Ministry expressed to the government of Israel, via its ambassador in Mexico, its profound astonishment, rejection and disappointment over Prime Minister Netanyahu's message on Twitter about the construction of a border wall,” Mexico’s foreign ministry said in a statement.

The statement also noted that Mexico’s Foreign Minister Luis Videgaray had expressed his deep affection for Israel at an event commemorating the Holocaust on Friday, adding: “Mexico is a friend of Israel and should be treated as such by its Prime Minister.”

The Central Committee of the Jewish Community in Mexico also issued a statement condemning Netanyahu’s comment. Mony de Swaan, a former head of the Mexican telecommunications regulator, took to Twitter to post pictures of walls related to the Nazi concentration camp Bergen-Belsen with the caption: “So you like walls @netanyahu? Here you have a couple of nice designs.”

Peled reportedly said that Netanyahu’s tweet did not necessarily refer to Trump’s wall but instead talked about the fence on Israel’s border with Sinai. Israeli Foreign Ministry Spokesman Emmanuel Nahshon said on Twitter: “@IsraeliPM referred to our specific security experience which we are willing to share. We do not express a position on US- Mexico relations.”

U.S.-Mexico relations took a turn for the worse on Thursday after Mexican President Enrique Pena Nieto canceled his plan to meet Trump after the latter said again that Mexico should pay for the wall Trump wants to build. However, in a call Friday, the leaders have reportedly decided to work out their differences.