In the courtyard of a royal castle stands a well from which the residents must fetch their water. The king is very displeased by this; what annoys him most is the farmhand Hans, who appears at the well every day, whistling a cheerful tune. The princess likes the tune and asks Hans to teach it to her. This drives the king’s anger to a fever pitch.