The mosque served as the chapel of the hospital and the monastery. The mosque building was finally pulled down in 1841, and was replaced by the present St. Sebestyén's Martyrs' Church of Eger. The minaret was entered through the mosque and evidence on the minaret still indicate where it joined the mosque.[8][2][3]