Trehafod is a village and community in the Rhondda Valley between Porth and Pontypridd in the county borough of Rhondda Cynon Taf, Wales, with a population of 698 in the 2011 census.(The earlier name Hafod was altered in 1905 to avoid confusion with Hafod near Swansea. Until then, Trehafod (first record of the name is found in 1851) had been part of Hafod).