Colombia has become the latest country to recognise the state of Palestine, the South American country’s foreign minister has said.

Carlos Holmes said the outgoing president, Juan Manuel Santos, made the decision shortly before leaving office last week.

The new president of Colombia, Ivan Duque, took office on Tuesday and was informed of Mr Santos’ decision a few days ago.

His government has said it would study the implication of Mr Santos’ last minute decision, which was detailed in a 3 August letter to the Palestinian representative in Colombia, the foreign ministry said.

The government acknowledged the decision was legal.

“Given possible omissions that could come to light about the way in which this decision was taken by the outgoing president, the government will cautiously examine its implications and will act according to international law,” Mr Holmes said in a statement.

Palestinians protest against demolition of Bedouin homes near jerusalem

Mr Santos decided to recognise Palestine as a “free, independent and sovereign state,” according to the letter, which was circulated to reporters by the foreign ministry.

“Just as the Palestinian people have a right to constitute an independent state, Israel has a right to live in peace alongside its neighbours,” the letter said.

The Israeli embassy in Bogota said it was surprised and disappointed.

“We ask the Colombian government to reverse the decision made by the previous administration in its last days, which contravenes the close relations, extensive cooperation in vital areas and interests of both countries,” it said in a statement posted to its Twitter account.

Palestinian protesters clash with Israeli troops: in pictures Show all 15 1 /15 Palestinian protesters clash with Israeli troops: in pictures Palestinian protesters clash with Israeli troops: in pictures A demonstrator uses a racket to return a tear gas canister fired by Israeli troops Reuters Palestinian protesters clash with Israeli troops: in pictures Palestinian demonstrators run for cover from tear gas fired by Israeli forces Reuters Palestinian protesters clash with Israeli troops: in pictures A demonstrator shouts Reuters Palestinian protesters clash with Israeli troops: in pictures Tear gas canisters are fired by Israeli forces at Palestinian demonstrators Reuters Palestinian protesters clash with Israeli troops: in pictures A wounded Palestinian is evacuated Reuters Palestinian protesters clash with Israeli troops: in pictures A demonstrator uses a sling to hurl stones at Israeli forces Reuters Palestinian protesters clash with Israeli troops: in pictures A female demonstrator uses a slingshot to hurl stones at Israeli forces Reuters Palestinian protesters clash with Israeli troops: in pictures A demonstrator with a slingshot looks on Reuters Palestinian protesters clash with Israeli troops: in pictures Female Palestinian demonstrators react to tear gas fired by Israeli forces Reuters Palestinian protesters clash with Israeli troops: in pictures Israeli forces fire teargas canisters toward Palestinian demonstrators AFP Palestinian protesters clash with Israeli troops: in pictures Female demonstrators run for cover from tear gas fired by Israeli forces Reuters Palestinian protesters clash with Israeli troops: in pictures Palestinian medics evacuate a wounded protester AP Palestinian protesters clash with Israeli troops: in pictures A demonstrator moves a burning tire Reuters Palestinian protesters clash with Israeli troops: in pictures A demonstrator uses a racket to return a tear gas canister fired by Israeli troops Reuters Palestinian protesters clash with Israeli troops: in pictures Palestinian demonstrators during clashes with Israeli forces AFP/Getty

The decision came to light while the US ambassador to the United Nations, Nikki Haley, was visiting Colombia.

She attended Mr Duque’s inauguration on Tuesday, and on Wednesday she visited Venezuelan migrants in the northern border city of Cucuta.

The US, a close ally of Israel, was getting more information about the situation and had no immediate comment, the US mission to the United Nations said.

The US does not recognise a Palestinian state, and Colombia long refrained from doing so due its close ties with Washington.

But in recent years Colombia has sought to chart a more independent foreign policy which has included calling for changes to US-backed anti-narcotics policies.

In a statement, the Palestinian representative to the UN said: ”We thank the Colombian government for this decision and we are sure that it will contribute significantly to generating the necessary conditions in the search for peace in the Middle East.”

Palestinian supporters protest as Israeli PM Netanyahu arrives at Downing Street

Palestine has been recognised as a sovereign state by the UN General Assembly, the International Criminal Court and at least 136 other countries.

It seeks to create a state in Gaza, the West Bank and East Jerusalem – lands Israel captured in the 1967 war.

Colombia is the last country in South America to recognise Palestinian statehood.