In December 1997 in Siirt, Erdoğan recited a poem from a work written by Ziya Gökalp, a pan-Turkish activist of the early 20th century. His recitation included verses translated as "The mosques are our barracks, the domes our helmets, the minarets our bayonets and the faithful our soldiers...." which are not in the original version of the poem. Erdoğan said the poem had been approved by the education ministry to be published in textbooks. Under article 312/2 of the Turkish penal code his recitation was regarded as an incitement to violence and religious or racial hatred. He was given a ten-month prison sentence of which he served four months, from 24 March 1999 to 27 July 1999. Due to his conviction, Erdoğan was forced to give up his mayoral position. The conviction also stipulated a political ban, which prevented him from participating in parliamentary elections.
Serbian police and military counter-action against the pro-Albanian separatist Kosovo Liberation Army in Serbia's previously autonomous province of Kosovo culminated in escalating armed conflict in 1998 and NATO air strikes against Yugoslavia between March and June 1999, ending in full withdrawal of Yugoslav security forces from the province and deployment of international civil and security forces.