Monty Python and the Holy Grail
The scene where the townsfolk kill the Shadow Knight is a reference to a similar scene in "Monty Python and the Holy Grail".