Ystrad Mynach is a town in the Rhymney Valley in the Caerphilly County Borough, within the ancient county of Glamorgan, Wales, and is 5 miles north of the town of Caerphilly. The urban area had a population of 19,204 in 2011.