Most legal disputes were dealt with locally by government officials called mayors, although their decision could be appealed and eventually overturned by the provincial governor. Sometimes legal disputes were publicly aired with witnesses present at a place like the town square or in front of the temple. However, the image of the king as the supreme judge of the land took hold, and this image appears in many literary works and poems. Citizens sometimes wrote letters of prayer to the king, either present or past.