 One was from his daughter Joan, Llywelyn's wife, the other from William I of Scotland, and both warned him in similar terms that if he invaded Wales his magnates would seize the opportunity to kill him or hand him over to his enemies.The invasion was abandoned, and in 1213, Llywelyn took the castles of Deganwy and Rhuddlan.Llywelyn made an alliance with Philip II Augustus of France, then allied himself with the barons who were in rebellion against John, marching on Shrewsbury and capturing it without resistance in 1215.