Medieval theatre emerged during the Middle Ages, spanning the 5th to 15th centuries in Europe. It developed in the wake of the Western Roman Empire's fall and Christianity's rise, reflecting the religious and social structures of feudal society. This theatrical tradition evolved from simple liturgical dramas in churches to elaborate mystery plays in public spaces. It served as a means of religious instruction and moral education for the largely illiterate population, coinciding with the growth of towns and the rise of the merchant class.