 The medieval motte and bailey castle of Tomen yr Allt was probably destroyed by Llywelyn ap Gruffudd in 1257.The castle earthworks are still present.Llanfyllin was granted a charter as a market town in 1293 by Llywelyn ap Dafydd under EdwardI, one of only two Welsh towns to have received its charter from a native ruler.