This echoes a couplet from "The Tyger" by William Blake:
What the hammer? What the Chain?
In what furnace was thy brain?
See
The William Blake Archive
for more about this influential poet.