Francesca Albanese, the United Nations special rapporteur on the Israeli-occupied Palestinian territory, has walked out of Costa Rica's Juan Santamaria airport after the country's Constitutional Court ordered that she be allowed to leave the premises, according to Al Jazeera.

Albanese had been refused entry into the Central American country and spent a second night stuck at the airport, which serves the capital, San Jose.

"I'm outside the airport. Finally. Thank you to everyone who helped me," she posted on X at about 07:00 GMT on Saturday.

Court order initially not followed

Hours earlier, at around 04:00 GMT, Albanese wrote that the Constitutional Court had directed that she be allowed to go to a hotel to rest, but that immigration police were not letting her go. In the same post she asked whether she was being detained and appealed for help.

She also accused Air France staff of ignoring the court ruling and offering excuses, saying she had been without sleep for more than 50 hours. In another post, she complained about the uncomfortable conditions at the airport.

Albanese said authorities had taken her passport and offered her a detention room to sleep in.

According to the AFP news agency, cited by Al Jazeera, the Constitutional Chamber of Costa Rica's Supreme Court issued a second interim order late on Friday directing that she be moved to a hotel, and confirmed that her onward destination would be Mexico.

Albanese had earlier told local media that she planned to continue to Mexico, but immigration officials insisted she return to France, which she opposed.

Government cites 'terrorist' alert

Costa Rica's government, which is aligned with the United States, claimed Albanese was the subject of an international alert over alleged links to terrorist acts. The UN Human Rights Office said she was turned away on what it called "claimed national security grounds".

Albanese rejected the attempts to associate her with terrorism and said she hoped Costa Rica would reverse its decision.

She had travelled to the country to receive an honorary doctorate from the state-run University of Costa Rica.

UN and Italy respond

UN human rights chief Volker Turk said on Friday he was deeply concerned by the decision to bar Albanese and urged Costa Rican authorities to reconsider.

Italy's Ministry of Foreign Affairs said its embassy in Costa Rica was giving consular assistance to Albanese, who is Italian. The ministry said the ambassador had contacted her and a consular official had been sent to the airport.

Italian officials repeatedly asked Costa Rica to let her in, the ministry said, adding that she had remained in the airport's international transit area without formally entering the country.

Outspoken critic of Israel

The episode has drawn attention to Costa Rica's increasingly close alignment with the United States and Israel on security and foreign policy, Al Jazeera reported.

Albanese has emerged as one of the most vocal international critics of Israel's conduct in Gaza, making her a regular target of pro-Israel governments and officials. She has also been sanctioned by the United States under measures connected to the International Criminal Court.

Israel's ambassador to the UN, Danny Danon, praised Costa Rica's decision in a post on X.

UN special rapporteurs are independent experts appointed by the UN Human Rights Council to investigate and report on human rights abuses in particular countries or territories.

This story was prepared by the Hamasta Newsdesk with AI assistance, based on reporting by Al Jazeera. Read the original report. Photo: Al Jazeera.