Short answer
A lawsuit can be filed at the administrative court (idare mahkemesi) against a deportation order ("deport", officially sınır dışı etme kararı) within seven days from service of the order. During the lawsuit and until the proceedings end, you will not be deported unless you consent. For the entry ban known as a restriction code (tahdit kodu), an application for its removal can be made to the Presidency of Migration Management (Göç İdaresi Başkanlığı), or an action for annulment can be filed against the ban at the administrative court.
- 01The time limit to sue against a deportation order is 7 days from service
- 02While the case is pending, you will not be deported without your consent
- 03Entry ban of up to 5 years; a further 10 years in case of a serious threat
- 04Code meanings are not officially published; what matters is the reasoning of the decision
Contents (11)
This is a translation of the Turkish text. If there is any difference, the Turkish text prevails.
A deportation order often comes at an unexpected moment: at an identity check, after an application to extend a residence permit, or during a workplace inspection. A notification is served on the person together with the order, and from that moment the clock starts ticking. In foreigners law, the losses of rights we see most often arise not so much from the order itself as from missing these short time limits.
Below we explain, under the Law on Foreigners and International Protection No. 6458 (Yabancılar ve Uluslararası Koruma Kanunu, YUKK), how to challenge a deportation order, the entry ban, and the ways to have a restriction code removed.
What does a deportation order mean?
The legal name of the procedure called "deport" in everyday language is a deportation order (sınır dışı etme kararı). The order is issued by the governorship (valilik), either on the instruction of the Presidency of Migration Management or on its own initiative. The order, together with its reasons, is served on the foreigner, their legal representative or their lawyer (YUKK Art. 52, Art. 53). The person may be sent to their own country, to a country of transit or to a third country.
In which cases is it issued?
The main grounds listed in the law are the following (YUKK Art. 54):
- Being assessed as a threat to public order, public security or public health,
- Being assessed as linked to a terrorist organisation or a profit-oriented criminal organisation,
- Using untrue information or forged documents in entry, visa or residence procedures,
- Exceeding the visa or visa-exemption period by more than ten days,
- Having the residence permit cancelled, or staying more than ten days after the permit expires without a valid reason,
- Working without a work permit,
- Violating the rules on legal entry or exit,
- Coming to Türkiye despite an entry ban,
- Not leaving within ten days after an application to extend residence has been rejected,
- Earning a living by illegitimate means.
Who cannot be deported?
Even if one of the above grounds exists, the law prohibits a deportation order from being issued against certain persons (YUKK Art. 55). These include: those at risk of the death penalty, torture or inhuman treatment in the country they would be sent to; those for whom travel is risky because of serious health problems, age or pregnancy; those undergoing treatment for a life-threatening illness where no treatment is available in the country they would go to; victims of human trafficking; and victims of violence whose treatment is ongoing.
This assessment is made separately for each person. That is why evidence such as medical reports showing the person's condition, documents showing family ties and similar proof should always be attached to the petition.
Challenge: the seven-day time limit
A lawsuit can be filed against a deportation order at the administrative court within seven days from service of the order. This rule took its current form with Law No. 7533 of 21 November 2024 (YUKK Art. 53/3). The process works as follows:
Swipe the table sideways →
| Issue | Rule |
|---|---|
| Time limit to sue | 7 days from service |
| Competent court | Administrative court |
| Decision period | 15 days after the file is complete |
| Hearing | At the court's discretion |
| Nature of the decision | Final |
| While the case is pending | You will not be deported unless you consent |
The person applying to the court also notifies the authority that issued the order of the application. Seven days really is short: the notification document and the reasons for the order should be secured on the same day, and gathering evidence should begin immediately. Because the administrative court's decision is final, if a fundamental right is considered to have been violated, an individual application (bireysel başvuru) to the Constitutional Court (Anayasa Mahkemesi) may also be considered separately.
What does the law say?Yabancılar ve Uluslararası Koruma Kanunu · Madde 53, üçüncü fıkra
The official text of the law is in Turkish.
“Yabancı veya yasal temsilcisi ya da avukatı, sınır dışı etme kararına karşı, kararın tebliğinden itibaren yedi gün içinde idare mahkemesine başvurabilir. Mahkemeye başvuran kişi, sınır dışı etme kararını veren makama da başvurusunu bildirir. [...] Başvurular dosyanın tekemmülünden veya ara karar ya da duruşma yapılması gereken hâllerde bunların tamamlanmasından itibaren on beş gün içinde sonuçlandırılır. Mahkemenin bu konuda vermiş olduğu karar kesindir. Yabancının rızası saklı kalmak kaydıyla, dava açma süresi içinde veya yargı yoluna başvurulması hâlinde yargılama sonuçlanıncaya kadar yabancı sınır dışı edilmez.”6458 sayılı Yabancılar ve Uluslararası Koruma Kanunu, Madde 53, üçüncü fıkra. 21.11.2024 tarihli ve 7533 sayılı Kanunla değişik. Official Turkish text (mevzuat.gov.tr)
Invitation to leave and administrative detention
A person subject to a deportation order may be given, provided this is stated in the order, a period of 15 to 30 days to leave the country (invitation to leave, terke davet). These persons are given an Exit Permit Document (Çıkış İzin Belgesi) free of charge. This period is not granted to those at risk of absconding, those who used forged documents, or those who pose a threat to public order (YUKK Art. 56).
In some cases the person is placed under administrative detention (idari gözetim) at a removal centre (geri gönderme merkezi) (YUKK Art. 57):
- Detention may not exceed six months. In cases such as the person's failure to cooperate, it may be extended by a maximum of six more months.
- The governorship reassesses every month whether detention is necessary.
- An application against the detention decision may be made to the criminal judge of peace (sulh ceza hâkimi). The judge decides within five days; the decision is final, but a new application may be made if circumstances change.
- Instead of detention, alternatives such as residence at a specified address, a reporting obligation, a guarantee or electronic monitoring may be applied; these last a maximum of 24 months (YUKK Art. 57/A).
Entry ban and restriction code
An entry ban (giriş yasağı) is imposed on persons deported from Türkiye. An entry ban may also be imposed on foreigners considered objectionable in terms of public order or security (YUKK Art. 9).
An entry ban lasts a maximum of five years. If there is a serious threat to public order or security, the Presidency of Migration Management may extend this period by a maximum of ten more years (YUKK Art. 9/3).
What does the law say?Yabancılar ve Uluslararası Koruma Kanunu · Madde 9, üçüncü fıkra
The official text of the law is in Turkish.
“Türkiye'ye giriş yasağının süresi en fazla beş yıldır. Ancak, kamu düzeni veya kamu güvenliği açısından ciddi tehdit bulunması hâlinde bu süre Genel Müdürlükçe en fazla on yıl daha artırılabilir.”6458 sayılı Yabancılar ve Uluslararası Koruma Kanunu, Madde 9, üçüncü fıkra. Official Turkish text (mevzuat.gov.tr)
"Restriction codes" are the abbreviations by which these decisions are shown in the authorities' systems. The meanings of the codes are not published in an official list, and the lists circulating on the internet do not match one another. In practice, the best-known example is the G-87 code, imposed on grounds of public order or security. However, to remove a code you need to know the reasoning of the decision behind it rather than the name of the code.
The law also sets out two situations in which an entry ban may not be imposed: foreigners whose visa or residence has expired but who apply to the governorship to leave before this is detected, pay their fine and do not exceed the violation period (YUKK Art. 9/4), and those who are invited to leave and depart from the country within the time given (YUKK Art. 9/5).
How is a restriction code removed?
- 1Find out the reason for the record. The notification of the entry ban should also state how the remedies against it can be used (YUKK Art. 10). If no notification was served, the basis for the record is asked of the relevant authority by written application.
- 2Apply to the authority. The Presidency of Migration Management may lift the entry ban or, while the ban continues, allow entry for a specific period (YUKK Art. 9/6). Ties such as a spouse and children in Türkiye, health, education or investment should be explained with documents.
- 3File an action for annulment. An entry ban is an administrative act. Under the general rule, the time limit for filing an administrative lawsuit is 60 days from service (Administrative Procedure Law (İYUK) Art. 7). Because the start of the period may vary depending on the facts, the calculation should be made carefully. A stay of execution (yürütmenin durdurulması) may also be requested together with the lawsuit.
- 4Check for a prior-permission requirement. Sometimes entry is not banned outright but made subject to prior permission (ön izin). For prior permissions arising from administrative fines and public receivables, the governorship is competent; for those based on public order and security, the Presidency of Migration Management is competent (YUKK Art. 9/7).
Which documents help in the petition?
The administrative court assesses the reasons for the decision and the person's ties with Türkiye together. Documents that can be gathered in a short time and that help in most files are:
- The decision and the notification itself (the date of service shows the day on which the time limit to sue started),
- Passport, visa or residence permit history,
- If there is a spouse or child who is a Turkish citizen, the marriage and civil registry records, and the children's school records,
- Documents showing a settled life in Türkiye, such as a lease, title deed, and tax and social security records,
- Medical reports and treatment documents (for the situations under YUKK Art. 55),
- If public order grounds were relied on, any decisions of non-prosecution (takipsizlik) or acquittal concerning the incident in question.
Family unity and the best interests of the child are values also protected under the Constitution and the European Convention on Human Rights. Showing these ties concretely with documents directly affects the court's assessment.
What should be done after the code is removed?
Even if the entry ban is lifted, the person may still need a visa depending on their country. When applying for a visa, carrying a copy of the decision or letter showing that the ban has been lifted reduces delays that may occur at the consulate and at the border gate. If a prior-permission requirement has been imposed, you should make sure that this permission has been obtained before travelling.
Because the administrative court's judgment on the deportation order is final, if a fundamental right is considered to have been violated, the route of individual application to the Constitutional Court remains. This application must be made within 30 days from learning of the final decision.
Those who are abroad can carry out these procedures through their lawyers. For this, a power of attorney (vekâletname) must be properly drawn up at a Turkish consulate or before a notary in the country where they are.
Frequently asked questions
After being deported, when can I return to Türkiye?
A person who is deported is given an entry ban of a maximum of five years; in cases of serious threat, this period may be extended by ten more years. While the ban continues, entry is possible only if the ban is lifted or an entry permit for a specific period is granted.
I overstayed my visa by a few days. Will I be deported?
The ground for deportation in the law is exceeding the visa period by more than ten days. Applying to the governorship and paying the fine before the overstay is detected is also important in terms of the entry ban.
I missed the seven days. What can I do?
Once the time limit has passed, the deportation order may become administratively final. Routes such as an administrative application to lift the entry ban and a separate action for annulment may still be considered.
Does a restriction code expire on its own?
The ban ends when the period stated in the decision expires. Still, it is advisable to have the current status of the record checked before planning travel.
What can I do for a relative held in a removal centre?
An application against the administrative detention decision may be made to the criminal judge of peace; the judge decides within five days. Those who cannot afford a lawyer's fee are assigned a lawyer if they request one (YUKK Art. 57/7).

Written and reviewed by
Attorney Raşa Yardımcı
Founding attorney, graduate of Istanbul University Faculty of Law. Legal counsel in English, Turkish and Arabic. This guide was checked against the legislation in force on 17 November 2026.
About our officeSources
Legislation used: Law on Foreigners and International Protection No. 6458, Articles 9, 10 and 52–57/A; Administrative Procedure Law No. 2577, Article 7; Law No. 6216 on the Establishment and Rules of Procedure of the Constitutional Court, Article 47. This article is for general information only; because time limits in foreigners law are short, your specific situation should be assessed without delay.



