"The Swineherd" is a literary fairy tale by Hans Christian Andersen. It was first published 20  December 1841 by C. A. Reitzel in Copenhagen, Denmark in "Fairy Tales Told for Children". The fairy tale appears to be original with Andersen though similar tales about the humbling of a proud princess are known, such as "King Thrushbeard" by the Brothers Grimm. "The Swineherd" has been adapted to various media including ballet and opera.