Morality plays originated in church services to teach religious lessons to illiterate populations through dramatizing the struggle between good and evil. They would travel between towns for entertainment while remaining anonymous, showing common dilemmas between virtues and vices. Over time, morality plays evolved from religious instruction to more complex dramas representing human nature that influenced later theatrical forms like those of Shakespeare.