Syria’s new leaders met the French and German foreign ministers in the capital, Damascus, on Friday in one of the highest-level Western diplomatic visits since the fall of President Bashar Assad last month.

Annalena Baerbock of Germany and her French counterpart, Jean-Noël Barrot, arrived in Damascus for the first such trip in years on behalf of the European Union, as world powers have begun building ties with Hayat Tahrir al-Sham, the Islamist group that leads the new Syrian government.

Baerbock and Barrot met with Ahmad al-Sharaa, the group’s leader, after visiting the notorious Sednaya prison, where Assad’s regime had tortured and killed thousands of detainees.

“We are traveling to Damascus today to offer our support, but also with clear expectations of the new rulers,” Baerbock said in a statement before the meeting. “A new beginning can only happen if all Syrians, no matter their ethnicity and religion, are given a place in the political process.”

The visits are among a flurry of contacts between rebel leaders and Western officials looking to gradually open channels to the new Syrian authorities. Al-Sharaa has worked to project a moderate image since taking power.

Hayat Tahrir al-Sham is still blacklisted as a terrorist group by the United States and the United Nations because of its past ties to al-Qaida. Al-Sharaa has called on the international community to remove that designation and sought to reassure minority groups, saying he wants to focus on rebuilding Syria after years of civil war.

“The current events demand the lifting of all sanctions on Syria,” he said in a televised interview last month.

Barrot said that France was urging the new rulers in Syria to pursue a political transition that would allow “all the communities in Syria, in all their diversity, to be represented.” Part of that included reaching a “political solution” with the Kurdish minority, he said, which has carved out an autonomous region in northeastern Syria.

The diplomacy comes during a realignment across the Middle East, where Assad’s regime was a core part of Iran’s regional coalition. His family’s decades of iron-fisted rule were opposed by many Syrians, spurring the 2011 uprising and civil war. At least six foreign militaries were involved in the fighting.

Many countries — including the United States — have begun forging ties with the new government. In late December, Barbara Leaf, the senior State Department official for the Middle East, met with al-Sharaa in Damascus and told him that Washington would no longer pursue an outstanding bounty for his arrest.