Answer
Llywelyn ceased his military career following the Peace of Middle in 1234. This peace treaty ended the Welsh Wars of Independence, and it was agreed that Llywelyn would hold the principality of Wales as a vassal of the English crown. In return, Llywelyn agreed to pay homage to the English king, to swear fealty to him, and to allow the English to build castles in Wales.