If you broke a law you appeared in court where the local leaders or nobles served as judge. In some cases the king would serve as judge. At the trial the judge would review evidence and listen to witnesses. If the person was found guilty, the punishment was carried out immediately.