Ystrad Tywi
Gruffydd ap Rhydderch of Gwent was able to expel Gruffydd ap Llywelyn from Deheubarth in 1047 and became king of Deheubarth himself after the nobles of Ystrad Tywi had attacked and killed 140 of Gruffydd ap Llywelyn's household guard. He was able to resist several attacks by Gruffydd ap Llywelyn in the following years. Gruffydd ap Llywelyn was active on the Welsh border in 1052, when he attacked Herefordshire and defeated a mixed force of Normans and English in the Battle of Leominster.