known as Llywelyn Ein Llyw Olaf; Llywelyn, Our Last Leader). The Treaty of Montgomery in 1267 confirmed Llywelyn in control, directly or indirectly, over a large part of Wales. Edward I disapproved of Llywelyn's alliance with Simon de Montfort, who revolted along with other barons against the English king in the second barons' war of 1264-1267 and war followed in 1277. Llywelyn was obliged to seek terms, and the Treaty of Aberconwy greatly restricted his authority. War broke out again when Llywelyn's brother Dafydd ap Gruffudd attacked Hawarden Castle on Palm Sunday 1282. On 11 December 1282, Llywelyn was lured into a meeting in Cilmeri in Builth Wells castle with unknown Marchers, where he was killed and his army subsequently destroyed. His brother Dafydd ap Gruffudd continued an increasingly forlorn resistance. He was captured in June 1283 and was hanged, drawn and quartered at Shrewsbury. This ended Welsh independence and in effect, Wales became England's first colony until it was finally annexed through the Laws in Wales Acts 1535-1542. Late middle ages: 1283–1542 After the passing of the Statute of Rhuddlan (1284), which restricted Welsh laws, King Edward I's ring of impressive stone castles assisted in the domination of Wales, and he crowned his conquest by giving the title Prince of Wales to his son and heir in 1301. Wales became, effectively, part of England, even though its people spoke a different language and had a different culture. English kings appointed a Council of Wales, sometimes presided over by the heir to the throne. This Council normally sat in Ludlow, now in England but at that time still part of the disputed border area in the Welsh Marches. Welsh literature, particularly poetry, continued to flourish, however, with the lesser nobility now taking over from the princes as the patrons of the poets. Many consider Dafydd ap Gwilym, who flourished in the middle of the 14th century, the greatest of the Welsh poets. There were a number of rebellions including ones led by Madog ap Llywelyn in 1294–1295 and by Llywelyn Bren, Lord of Senghenydd, in 1316–1318. In the 1370s, the last representative in the male line of the ruling house of Gwynedd, Owain Lawgoch, twice planned an invasion of Wales with French support. The English government responded to the threat by sending an agent to assassinate Owain in Poitou in 1378. In 1400, a Welsh nobleman, Owain Glyndŵr (or Owen