 In 1208, Gwenwynwyn of Powys fell out with King John who summoned him to Shrewsbury in October and then arrested him and stripped him of his lands.Llywelyn took the opportunity to annex southern Powys and northern Ceredigion and rebuild Aberystwyth castle.In the summer of 1209 he accompanied John on a campaign against King William I of Scotland.