|Region||İzmit, Kocaeli Province|
Nicomedia ( //;  Greek: Νικομήδεια, Nikomedeia; modern İzmit) was an ancient Greek city located in what is now Turkey. In 286, Nicomedia became the eastern and most senior capital city of the Roman Empire (chosen by the emperor Diocletian who ruled in the east), a status which the city maintained during the Tetrarchy system (293–324).
The Tetrarchy ended with the Battle of Chrysopolis ( Üsküdar) in 324, when Constantine defeated Licinius and became the sole emperor. In 330 Constantine chose for himself the nearby Byzantium (which was renamed Constantinople, modern Istanbul) as the new capital of the Roman Empire.
The city was incorporated into the Ottoman Empire with the victory of Sultan Orhan Gazi against the Byzantine Empire. The Byzantines managed to retake it in the aftermath of the Battle of Ankara, but it fell definitively to the Ottomans in 1419.
It was founded in 712–11 BC as a Megarian colony and was originally known as Astacus ( //; Ancient Greek: Ἀστακός, 'lobster').  After being destroyed by Lysimachus,  it was rebuilt by Nicomedes I of Bithynia in 264 BC under the name of Nicomedia, and has ever since been one of the most important cities in northwestern Asia Minor. The great military commander Hannibal Barca came to Nicomedia in his final years and committed suicide in nearby Libyssa ( Diliskelesi, Gebze). The historian Arrian was born there.
Nicomedia was the metropolis and capital of the Roman province of Bithynia under the Roman Empire. It is referenced repeatedly in Pliny the Younger's Epistles to Trajan during his tenure as governor of Bithynia.  Pliny, in his letters, mentions several public buildings of the city such as a senate-house, an aqueduct, a forum, a temple of Cybele, and others, and speaks of a great fire, during which the place suffered much.  Diocletian made it the eastern capital city of the Roman Empire in 286 when he introduced the Tetrarchy system.
Nicomedia was at the center of the Diocletianic Persecution of Christians which occurred under Diocletian and his Caesar Galerius. On 23 February 303 AD, the pagan festival of the Terminalia, Diocletian ordered that the newly built church at Nicomedia be razed, its scriptures burnt, and its precious stones seized.  The next day he issued his "First Edict Against the Christians," which ordered similar measures to be taken at churches across the Empire.
The destruction of the Nicomedia church incited panic in the city, and at the end of the month a fire destroyed part of Diocletian's palace, followed 16 days later by another fire.  Although an investigation was made into the cause of the fires, no party was officially charged, but Galerius placed the blame on the Christians. He oversaw the execution of two palace eunuchs, who he claimed conspired with the Christians to start the fire, followed by six more executions through the end of April 303. Soon after Galerius declared Nicomedia to be unsafe and ostentatiously departed the city for Rome, followed soon after by Diocletian. 
Nicomedia remained as the eastern (and most senior) capital of the Roman Empire until co-emperor Licinius was defeated by Constantine the Great at the Battle of Chrysopolis ( Üsküdar) in 324. Constantine mainly resided in Nicomedia as his interim capital city for the next six years, until in 330 he declared the nearby Byzantium (which was renamed Constantinople) the new capital. Constantine died in a royal villa in the vicinity of Nicomedia in 337. Owing to its position at the convergence of the Asiatic roads leading to the new capital, Nicomedia retained its importance even after the foundation of Constantinople. 
A major earthquake, however, on 24 August 358, caused extensive devastation to Nicomedia, and was followed by a fire which completed the catastrophe. Nicomedia was rebuilt, but on a smaller scale.  In the sixth century under Emperor Justinian I the city was extended with new public buildings. Situated on the roads leading to the capital, the city remained a major military center, playing an important role in the Byzantine campaigns against the Caliphate.  From inscriptions we learn that in the later period of the empire Nicomedia enjoyed the honour of a Roman colony. 
In 451, the local bishopric was promoted to a Metropolitan see under the jurisdiction of the Ecumenical Patriarchate of Constantinople.  The metropolis of Nicomedia was ranked 7th in the Notitiae Episcopatuum among the metropolises of the patriarchate.  In the eighth century the Emperor Constantine V established his court there for a time, when plague broke out in Constantinople and drove him from his capital in 746–47.  From the 840s on, Nicomedia was the capital of the thema of the Optimatoi. By that time, most of the old, seawards city had been abandoned and is described by the Persian geographer Ibn Khurdadhbih as lying in ruins, with settlement restricted to the hilltop citadel.  In the 1080s, the city served as the main military base for Alexios I Komnenos in his campaigns against the Seljuk Turks, and the First and Second Crusades both encamped there.
The city was briefly held by the Latin Empire following the fall of Constantinople to the Fourth Crusade in 1204: in late 1206 the seneschal Thierry de Loos made it his base, converting the church of Saint Sophia into a fortress; however, the Crusader stronghold was subjected to constant raids by the Emperor of Nicaea Theodore I Laskaris, during which de Loos was captured by Nicaean soldiers; by the summer of 1207 Emperor Henry of Flanders agreed to evacuate Nicomedia in exchange for de Loos and other prisoners Emperor Theodore held.  The city remained in Byzantine control for over a century after that, but following the Byzantine defeat at the Battle of Bapheus in 1302, it was threatened by the rising Ottoman beylik. The city was twice sieged and blockaded by the Ottomans (in 1304 and 1330) before finally succumbing in 1337. 
The city remained in Ottoman hands until the Battle of Ankara and subsequent Ottoman Interregnum weakened them enough for the neighbouring states to demand the return of their conquered lands from the warring Ottoman princes in exchange for their support against the other princes. In this way the Byzantines secured considerable territorial concessions including Nicomedia and other lands on the east side of the Bosphorus. However, this last period of Byzantine rule was rather short-lived, as Nicomedia was definitively taken by the Ottomans around 1419.
During the Empire, Nicomedia was a cosmopolitan and commercially prosperous city which received all the amenities appropriate for a major Roman city. Nicomedia was well known for having a bountiful water supply from two to three aqueducts,  one of which was built in Hellenistic times. Pliny the Younger complains in his Epistulae to Trajan, written in 110 AD, that the Nicomedians wasted 3,318,000 sesterces on an unfinished aqueduct which twice ran into engineering troubles. Trajan instructs him to take steps to complete the aqueduct, and to investigate possible official corruption behind the large waste of money.  Under Trajan, there was also a large Roman garrison.  Other public amenities included a theatre, a colonnaded street typical of Hellenistic cities and a forum. 
The major religious shrine was a temple of Demeter, which stood in a sacred precinct on a hill above the harbor.  The city adopted official cults of Rome avidly, there were temples dedicated to the Emperor Commodus,  a sacred precinct of the city dedicated to Augustus,  and a temple of Roma dedicated during the late-Republic. 
The city was sacked in AD 253 by the Goths, but when Diocletian made the city his capital in 283 AD he undertook grand restorations and built an enormous palace, an armory, mint, and new shipyards. 
The ruins of Nicomedia are buried beneath the densely populated modern city of İzmit, which has largely obstructed comprehensive excavation. Before the urbanization of the 20th century occurred, select ruins of the Roman-era city could be seen, most prominently sections of the Roman defensive walls which surrounded the city and multiple aqueducts which once supplied Nicomedia's water. Other monuments include the foundations of a 2nd-century AD marble nymphaeum on İstanbul street, a large cistern in the city's Jewish cemetery, and parts of the harbor wall. 
The 1999 İzmit earthquake, which seriously damaged most of the city, also led to major discoveries of ancient Nicomedia during the subsequent debris clearing. A wealth of ancient statuary was uncovered, including statues of Hercules, Athena, Diocletian and Constantine. 
In the years after the earthquake, the Izmit Provincial Cultural Directorate appropriated small areas for excavation, including the site identified as Diocletian's Palace and a nearby Roman theatre. In April 2016 a more extensive excavation of the palace was begun under the supervision of the Kocaeli Museum, which estimated that the site covers 60,000 square meters (196,850 square feet).