<human>:  Who built the Welsh castle, Pentyrch Castle?
<bot>: The castle was built in the 12th century by Llywelyn the Great, a prince of Wales. The castle was originally built to protect the border of Wales from English invaders.