Ypati () is a village and a former municipality in Phthiotis, central peninsular Greece. Since the 2011 local government reform it is part of the municipality of Lamia, of which it is a municipal unit. The municipal unit has an area of 257.504 km2. Its 2011 population was 4,541 for the municipal unit, and 496 for the settlement of Ypati itself. The town has a long history, being founded at the turn of the 5th/4th century BC as the capital of the Aenianes. During the Roman period the town prospered and was regarded as the chief city of Thessaly, as well as a bishopric. It was probably abandoned in the 7th century as a result of the Slavic invasions, but was re-established by the 9th century as Neopatras. The town became prominent as a metropolitan see and was the capital of the Greek principality of Thessaly in 1268–1318 and of the Catalan Duchy of Neopatras from 1319 to 1391. It was conquered by the Ottomans in the early 15th century and remained under Ottoman rule until the Greek War of Independence. Geography Ypati is around 30 km west of Thermopylae and north of the Oiti mountains and Xerisa river, it is also 25 km west of Lamia south of the GR-38 (Lamia - Karpenissi - Agrinio), around 230 km NNW of Athens and about 50 km east of Karpenissi, it overlooks the Spercheios to the north. The geography includes forests and grasslands to the south in higher elevations. Phocis lies to the south. Around 3 km northwest are the famous springs that date to ancient times. It is around a few kilometres from the mountains. History Antiquity In Antiquity, the city was known as Hypate () or Hypata (), probably a corruption of hypo Oita (, meaning "near the Mount Oeta"). The city was founded in the late 5th/early 4th century BC, as the capital of the Aenianes tribe and their koinon ("league, commonwealth"). In later times it belonged to the Amphictyony of Amphela. Herodotus records the nearby hot springs, which were visited in Antiquity. It was also a polis (city-state). In around 344 BC, the city came under Macedonian rule, which continued, except for a brief interruption during the Lamian War, until the city became a member of the Aetolian League . As a member of the League, it was ravaged by the Roman general Manius Acilius Glabrio in