the garden weeks later with the edict which established the Ottoman Imperial School in the grounds next to the rose garden, with Gül Baba as its headmaster. Gül Baba became the first headmaster of Galatasaray and administered the school for many years. He died during the Ottoman raid on Hungary and his tomb is located in Budapest. When the Ottoman army went to war, dervishes and minstrels accompanied it to provide prayers and entertainment but also armed themselves and joined in the fighting when necessary. Gül Baba was one of these dervishes. Interim period (1830–1868) Galata Palace Imperial School remained open until the 1830s, when the Tanzimat movement for reform and reorganisation drastically altered the Ottoman Empire's old establishment. Sultan Mahmud II (1808–1839) replaced the Imperial School with the Ottoman Medical School, staffed largely by French professors with most courses taught in French. The Medical School was based in the Galatasaray (Galata Palace) buildings for some thirty years. Modern period (1868–1923) Sultan Abdülaziz (1861–1876) was the first Ottoman sultan to travel to Europe and, while in France, was impressed by the French educational system. On his return to Constantinople, he announced the Edict on Public Education which established a free compulsory education system for children under twelve. In September 1868, the Lycée Impérial Ottoman de Galata-Sérai" (Turkish: Galatasaray Mekteb-i Sultanisi) was established based on the lycée model. French was the main language of instruction, and many teachers were European. The students included members of all the religious and ethnic communities of the Ottoman Empire. From 1868 to 1878, most of the students non Muslims. Many of them were Bulgarian. Since this period, the district where the school stands has been known as Galatasaray. In 1905, the Galatasaray Sports Club was founded by Ali Sami Yen and his friends in one of the school's classrooms (Literature 5B). In 1907 a fire broke out in the school and burnt its wooden buildings to the ground. The library, museum and archive were all lost; only some stones of the external walls survived. The school was briefly relocated to Beylerbeyi but in 1909 the students were able to return to a new stone building on the site. Establishment of the Republic of Turkey to Integrated Education System (1923–1992) With the abolition of the Ottoman Empire and the proclamation of the Republic of Turkey in 1923, the school's name was changed to Galatasaray Lisesi (Galatasaray