In the kingdom of Didd, King Derwin is riding through a street past Bartholomew Cubbins, a poor boy in the market. Bartholomew removes his hat, according to the laws, but another hat mysteriously appears; when he attempts to remove this one too, another one appears again, and this continues, even as he removes more and more hats, each growing in extravagance and beauty.