Traditionally, in Thailand, theatrical performances and ancillary entertainments, feats, and games had an important ceremonial function. The generic term that is applied to them is mahōrasop. The context in which they are found in their most highly developed form is that of court ceremonial, though, since ceremonies in the country were often analogues of those held at court, performances of this kind had a wide distribution beyond the walls of the royal and princely palaces of the capitals. To-day, the tradition, even though progressively devitalized as a result of a century of cultural change, remains a living one.