At the end of the play Puck makes a speech explaining his actions which serves to trivialize the play itself if it has offended the audience.

If we shadows have offended,
Think but this, and all is mended,
That you have but slumber'd here
While these visions did appear.
And this weak and idle theme,
No more yielding but a dream,
Gentles, do not reprehend:
if you pardon, we will mend:
And, as I am an honest Puck,
If we have unearned luck
Now to 'scape the serpent's tongue,
We will make amends ere long;
Else the Puck a liar call;
So, good night unto you all.
Give me your hands, if we be friends,
And Robin shall restore amends. (Act v. Scene i.)

Puck apologizes to the audience for anything that might have offended them and suggests that they pretend it was a dream.