Turkey dropped sanctions against Attorney General Jeff Sessions and Kirstjen Nielsen, the homeland security secretary, on Friday.CreditCreditEric Thayer for The New York Times

WASHINGTON — The United States and Turkey have lifted sanctions against top officials in each other’s government in a mutual sign on Friday of warming diplomatic relations between the two NATO allies after last month’s release of an American pastor.

The Trump administration had imposed financial sanctions on two Turkish officials in August to punish the country for the two-year detention of the pastor, Andrew Brunson. In turn, Turkey placed its own sanctions on Attorney General Jeff Sessions and Kirstjen Nielsen, the homeland security secretary.

In Ankara, Hami Aksoy, the Turkish Foreign Ministry spokesman, said the sanctions against Mr. Sessions and Ms. Nielsen “responded according to reciprocity principle, which is basis of diplomatic practices.”

He said those constraints — which included a travel ban to Turkey, the freezing of any assets in Turkey and a ban on any financial transaction with people or entities in Turkey — were lifted in parallel with the scuttled sanctions against Turkey’s minister of justice, Abdulhamit Gul, and the interior minister, Suleyman Soylu.

Ads By Google

The Treasury Department updated its list of individuals under sanction on Friday to remove the two Turkish officials.

Mr. Brunson’s release came a week after the disappearance of Jamal Khashoggi, a Saudi dissident and Washington Post columnist, inside Saudi Arabia’s consulate in Istanbul.

At the time, Turkish officials said they believed Saudi officials had killed Mr. Khashoggi inside the consulate — a plot that President Trump and other American officials also described as likely, siding against Riyadh despite a budding alliance between the White House and Crown Prince Mohammed bin Salman of Saudi Arabia.

Mr. Brunson was accused of spying and helping terrorists in the 2016 coup against President Recep Tayyip Erdogan of Turkey. His release appeared to represent an olive branch, and to ensure American support as Turkey confronted the Saudis over Mr. Khashoggi’s killing.