In the Greek myth, Procrustes was a son of Poseidon with a stronghold on Mount Korydallos at Erineus, on the sacred way between Athens and Eleusis. There he had an iron bed, in which he invited every passer-by to spend the night, and where he set to work on them with his smith's hammer, to stretch them to fit. In later tellings, if the guest proved too tall, Procrustes would amputate the excess length; nobody ever fit the bed exactly, because secretly Procrustes had two beds. Procrustes continued his reign of terror until he was captured by Theseus, travelling to Athens along the sacred way, who "fitted" Procrustes to his own bed:
He killed Damastes, surnamed Procrustes, by compelling him to make his own body fit his bed, as he had been wont to do with those of strangers. And he did this in imitation of Heracles. For that hero punished those who offered him violence in the manner in which they had plotted to serve him.
A Procrustean solution is the undesirable practice of tailoring data to fit its container or some other preconceived structure.