Pencoed is a heavily urbanised community and town in the county borough of Bridgend, Wales. Pencoed as a town developed in the late 19th century, around the coal mining industry; the coal mines have now closed. The town is in the Ewenny Valley and is divided by the M4 motorway about two miles north of the town. The town consists of three distinct areas, which were once four small hamlets. The central and eastern part of the town, which lies on the valley floor near the railway, consists of Pencoed itself and Felindre. There are numerous streams rising and running through the town, and two main rivers, the Ewenni Fawr and the Ewenni Fach. At the centre of the town, close to the station, is the war memorial (known locally as the Monument), the shopping centre and the local Community Hall. The town is well provided with sports facilities, schools, pubs and clubs.