How Solomon Found the Shamir Worm Through Asmodeus's Secret
No iron could touch the Temple stones. Solomon needed the shamir, a creature that could split rock without touching it. Only Asmodeus knew where it was.
Table of Contents
There is a law written into the Torah about building altars. You cannot use iron tools. Iron is the metal of warfare, of swords and spearheads, and its touch would profane the stones that were meant to receive the divine presence. The reasoning runs deep: what is used to end life cannot be used to build the house of life.
But Solomon was building something much larger than an altar. He was building the entire Temple, and the stones had to be shaped and fitted with precision. Every surface had to be exact. And not a single iron tool could touch them. How do you dress stone without metal?
The answer, as the sages reminded Solomon when he raised this problem, was already in the tradition. Moses had used the shamir. Not a tool, not a machine, but a creature, described in Legends of the Jews, Ginzberg's compilation of 1909 to 1938, as a small stone or worm with the capacity to split the hardest materials by contact alone. Moses had used it to engrave the names of the twelve tribes onto the precious stones of the ephod, the priestly breastplate worn by the High Priest. The shamir could cut what iron could not touch, and it left no mark of violence on what it worked.
The Problem of Finding What Cannot Be Found
Solomon turned to the demons he commanded. If anyone knew the location of the shamir, surely it was the spirits that moved through the hidden places of the world. But they were stumped. They knew of its existence. They knew it was real. What they did not know was where it had gone since the time of Moses, or who held it now.
Finally, one of them offered a clue: Asmodeus, the king of the demons, might know. And they knew where Asmodeus could be found. He lived on a certain mountain. He kept a well there, sealed with a great stone, and the pattern of his days was peculiar enough that someone who knew it could use it against him. The Talmud Bavli, compiled in the 6th century CE, contains extensive tractate discussions of demonic hierarchy and the ways in which even the most powerful of these beings operated within predictable patterns. Asmodeus was powerful, but he was not unknowable.
The Daily Routine of the King of Demons
Every morning, Asmodeus would leave his mountain and ascend to attend the heavenly academy. Yes, even the king of demons attended Torah study in the higher realms. The Midrash Rabbah, the 5th century CE anthology, contains a remarkable passage suggesting that Torah learning is not the exclusive province of the righteous, that even forces that operate against human wellbeing are drawn to the divine wisdom at the center of creation, because wisdom is not a reward for goodness but the fabric of existence itself.
Before departing each morning, Asmodeus would seal his well with a massive rock, pressing his signet into the seal so that no one could disturb his water supply without his knowledge. When he returned each evening, he would check the seal, verify it was intact, and only then allow himself to drink. This was his vulnerability. Not power, not cunning, but routine. He was predictable in his caution. The full account of the plot against Asmodeus in the Ginzberg text describes how Solomon's agent used this knowledge to lay a trap, draining the well through one container and filling it with wine through another, so that when the demon king returned and drank what he thought was water, he was drinking something else entirely.
What the Shamir Was Really Made Of
The shamir itself deserves attention beyond its use in building. The tradition, as recorded in Pirkei DeRabbi Eliezer, the 8th century CE narrative midrash, lists the shamir among the ten things created at twilight on the sixth day of creation, things that were neither entirely natural nor entirely miraculous but stood at the boundary between the two. Other items on that list include the rainbow, the manna, and the staff of Moses. The shamir was not an accident of nature or a simple tool. It was built into the structure of creation specifically for moments that required precision beyond what ordinary instruments could achieve.
The Zohar, composed in Castile around 1280 CE, connects this idea of the shamir to a deeper principle: that certain tasks in the world can only be accomplished by instruments that were prepared for them from before creation began. The Temple was not being built with what happened to be available. It was being built with what had always been intended for it, and the shamir was part of that intention, waiting through centuries in the custody of whoever the divine plan designated, until the moment arrived when Solomon needed to ask the right question of the right source.
The First Step Toward a Fall
The tradition does not let this story sit comfortably. Asmodeus is captured. The shamir is found. The Temple is built without iron tools, just as the Torah required. Everything works. But the Legends of the Jews frames the capture of Asmodeus as a beginning, not an ending. Once the demon king was in Jerusalem, once Solomon had him in chains and could question him freely, something began to shift. Solomon's pride in his mastery over the supernatural world grew. His certainty in his own ability to manage forces that other human beings had no access to began to function not as wisdom but as overconfidence. The shamir built the Temple. The relationship with Asmodeus that made the shamir possible eventually contributed to Solomon's undoing. The Midrash Rabbah teaches that the same capacity that makes a person capable of great achievement can, if it tips into arrogance, become the exact mechanism of their failure. Solomon learned this the hard way.