When King John died on 18 October, 1216 his nine-year-old son, Henry was too young to rule the kingdom. William Marshal was appointed as Regent to Henry III to make decisions on Henry’s behalf until he came of age. The barons switched their allegiance to the new king, forcing Louis to give up his claim and sign the Treaty of Lambeth in 1217.