The dunce cap was used to discipline school children that misbehaved in the classroom such as throwing “spitballs”, passing notes or pulling hair.  The dunce was required to sit on a stool in the corner of the room as a form of humiliation.  The desired effect was to avoid being required to wear the hat by avoiding misbehaving.