 In July, the same year Llywelyn concluded a treaty with King John of England.This is the earliest surviving written agreement between an English king and a Welsh ruler, and under its terms Llywelyn was to swear fealty and do homage to the king.In return, it confirmed Llywelyn's possession of his conquests and allowed cases relating to lands claimed by Llywelyn to be heard under Welsh law.