In the early middle ages Wales was divided in several kingdoms, each with its own laws. Hywel ap Caell, usually known as 'Hywel Dda' or Hywel the Good, who became king over nearly all of Wales in 942, is credited with having brought these different systems into a single body of law, although three different versions exist: for Venedotia (north Wales), Dimetia (south Wales), and Gwent (south-east). Expanded and re-edited over the following centuries, the laws of Hywel ap Caell became the standard of social relations throughout Wales, although some local customs continued to exist. The Law continued in use in Wales until the union with England in 1536. This manuscript, believed to have belonged to Anian, bishop of St Asaph, Bangor (1268-1293), has a copy of the Venedotian laws (for north Wales). This page has Laws of Court relating to the rhingyll or apparitor and porters.