Ioannina is first definitely mentioned in a 1020 decree by the Byzantine emperor Basil II, but it clearly existed for several centuries before.
The city remained under Ottoman rule from 1430 until captured by Greece in the First Balkan War in 1913.