191 BC during his advance through Thessaly during the Roman-Seleucid War, and hosted the Aetolian peace negotiations with Roman general Lucius Valerius Flaccus two years later. After the conclusion of peace between Roman and the Aetolian League, Hypata remained as the only Aetolian possession north of Oeta. In 168 BC, Rome re-established the koinon of the Aenianes as an autonomous polity, with its own eponymous magistrates and coins; Hypata became again its capital, and entered a period of renewed prosperity. After the Battle of Pydna, from the year 167 BC, the city was independent for a period of about twenty years, until creation of the Aenianian League, a confederation of territories of the Aenianes that was directed by five officials, although in Hypata, the capital, two archons also governed. In about 30 BC, Augustus united Aenis with the Thessalian Federation, and the city formed part of Thessaly thereafter; by the 2nd century it was counted as the most important Thessalian city. Byzantine, Crusader and Ottoman rule The city is still mentioned in the 6th century under its ancient name by Procopius, who recorded repairs to its walls by Emperor Justinian I, and in the Synecdemus. The city was probably abandoned after the Slavic invasions of the 7th century, but reappears in the 9th century under the name Neai Patrai (Νέαι Πάτραι, "New Patras") or Patrai Helladikai (Πάτραι Ἑλλαδικαὶ, "Patras in Hellas"). Nicephorus Gregoras, writing in the 14th century, mentions it as being a strongly fortified place in the 12th century. Otherwise, until the 13th century, the city is mentioned only as an ecclesiastical centre (see below). Coming briefly under Latin rule after the Fourth Crusade, the city was recovered by the ruler of Epirus, Theodore Komnenos Doukas, in 1218. It remained in Epirote hands thereafter, except for a brief period when it was occupied by Nicaean troops after the Battle of Pelagonia in 1259. After it became the capital of the independent principality of Thessaly under John I Doukas and his successors, until the death of John II Doukas in 1318. The Catalan Company seized the city in 1319 and made it the centre of the new Duchy of Neopatras, which was joined with the Catalan-ruled Duchy of Athens. Neopatras was one of the last remaining Catalan possessions in Greece, being captured by Nerio Acciaioli in 1391. Three years later it fell to the Ottoman Turks under Bayezid I. The