Gomfoi (Greek: Γόμφοι, before 1930: Ραψίστα - Rapsista; ) is a village and a former municipality in the Trikala regional unit, Thessaly, Greece. Since the 2011 local government reform it is part of the municipality Pyli, of which it is a municipal unit. The municipal unit has an area of 58.482 km2. Population 4,782 (2011). The seat of the municipality was in Lygaria. Gomfoi is located in Thessalian Plain, near the river Pamisos. It is 5 km northeast of Mouzaki, and 12 km southwest of the city of Trikala. A town existed on the site of present Gomfoi in ancient times, which was renamed Philippoupolis (Greek: Φιλιππούπολις) during the reign of Philip II of Macedon. The area joined Greece in 1881. History Ancient Gomfoi - Gomphi in classical sources - was a town of Histiaeotis in Ancient Thessaly, situated upon a tributary of the Peneius, and near the frontiers of Athamania and Dolopia. Its position made it a place of historical importance, since it guarded two of the chief passes into the Thessalian plains: "that of Musáki, distant two miles (three km), which was the exit from Dolopia, and the pass of Portes, at a distance of four miles (six km), which led into Athamania, and through that province to Ambracia." In the war against Philip V of Macedon, Amynander of Athamania, king of the Athamanes, in co-operation with the Roman consul Titus Quinctius Flamininus, having descended from the latter pass, first took Pheca, a town lying between the pass and Gomphi, and then Gomphi itself, 198 BCE. The possession of this place was of great importance to Flamininus, since it secured him a communication with the Ambracian Gulf, from which he derived his supplies. The route from Gomphi to Ambracia is described by Livy as very short but extremely difficult. The capture of Gomphi was followed by the surrender of the towns named Argenta, Pherinum, Thimarum, Lisinae, Stimo, and Lampsus, the position of which is quite uncertain. When Athamania revolted from Philip in 189 BCE, he marched into their country by the above-mentioned pass, but was obliged to retire with heavy loss. There can be no doubt that it was by the same route that the Roman consul Quintus Marcius Philippus marched from Ambracia into Thessaly in 169 BCE. In the campaign between Julius Caesar and Pompey in 48 BCE, the inhabitants of Gomphi, having heard of Caesar's repulse