Pyli (Greek: Πύλη) is a municipality in the Trikala regional unit, Greece. Situated 18 km west of Trikala, right at the bottom of two mountains Itamos, and Koziakas, which mark the beginning of the Pindos mountainline, Pyli marks the entrance to a great gorge and the natural path that leads to the city of Arta. The river Portaikos, a tributary of the river Pineios, runs through this location. The municipality of Pyli contains 7 municipal units, but the town itself has a population of about 2,000. Most inhabitants are either self-employed in small business establishments or work in Trikala. Agriculture and animal herding as an occupation has been largely abandoned, though the surrounding area is ideal for both (mountainous and flat terrain). Pyli had always been the major trade center for the surrounding settlements and is full of interesting monuments and beautiful scenery.