A Turkish court released American pastor Andrew Brunson two years after he was detained.

Pastor was charged with helping to plot a coup against President Recep Tayyip Erdogan. The court sentenced Brunson to three years and one month in jail, but decided to release him based on his time already served, CNN reported.

The United States have imposed sanctions against Turkish ministers which resulted in serious economic problems in Turkey.