QuestionPoseidon
Who Built the Walls of Troy? Poseidon, Apollo and Laomedon

The walls of Troy were built by the sea god Poseidon and by Apollo, who worked for the Trojan king Laomedon for a fixed wage. When the wall was finished, Laomedon refused to pay them, and the two gods took their revenge on Troy.
Contents
The full answer
In the Iliad, Poseidon and Apollo are said to have served Laomedon for a year’s wage. Poseidon tells Apollo in book 21 that they built a broad, fine wall around the city “that the city might never be broken”, while Apollo herded the king’s cattle on the slopes of Mount Ida. When the term of their service ended, Laomedon defrauded them of their pay and threatened to bind their hands and feet and sell them to distant islands.
Apollodorus, in the Library, gives a fuller version. He says that Apollo and Poseidon took on the likeness of men to test the wantonness of Laomedon, and undertook to fortify Pergamum, the citadel of Troy, for a wage. When the walls were done, the king would not pay them. In revenge, Apollo sent a pestilence and Poseidon sent a flood carrying a sea monster that snatched people from the plain.
So the answer is that the two gods built the walls, and their unpaid wages are the cause of the trouble that followed.
What the ancient sources say
Homer tells the story in the speech of Poseidon in book 21 of the Iliad, when the gods are fighting one another during the battle at the river. Poseidon reminds Apollo of the wages and the insult, and the story is used as a reason for the gods’ hatred of Laomedon. Homer does not describe the sea monster or the rescue of Hesione. Those details come later.
Apollodorus gives the full sequence in book 2 of the Library. Laomedon’s daughter Hesione is exposed on the rocks to be eaten by the monster, as an oracle has said. Heracles promises to save her if Laomedon gives him the divine mares that Zeus had given to Troy as compensation for the abduction of Ganymede. The king agrees, Heracles kills the monster, and then Laomedon refuses to pay the mares. Heracles sails away and threatens war on Troy.
The two accounts agree on the wages and the cheating. They disagree on the monster, which is found only in the later writer, and on the sack, which Homer never mentions.
Hesione and the sack of Troy
The rescue of Hesione explains how Troy was first attacked by a Greek hero. In Apollodorus, Heracles comes to the city after the monster has been killed, is refused his reward, and sails away threatening war. The later Trojan War of the epic is a larger conflict, and Homer does not connect the two directly.
Hesione is the link between these stories. Readers often ask why the walls were not strong enough, and the ancient sources give no single answer. Homer presents the walls as a fact of the war, and the later sources explain the fall of the city through the wooden horse.
Poseidon and Apollo in the Iliad
In book 7 of the Iliad, the Greeks build a wall to protect their camp and ships. Poseidon is angry about this, because the new wall will outshine the walls that he and Apollo built for Troy, and he says that men will forget the work of the gods. The passage shows that the gods still remember the work and the wages from long before the war.
Apollo and Poseidon are on opposite sides in the war. Apollo supports the Trojans and Poseidon the Greeks, so the old debt is never repaid. The walls thus stand as a symbol of the unpaid labour behind the war.
Why a god worked for a king
A god working for a mortal king is an unusual picture in Greek myth, and the story uses it to explain why Poseidon and Apollo later stand on opposite sides. Poseidon’s grievance is personal, and it shapes his support for the Greeks in the battles of the Iliad. Apollo shares the same debt with his brother, but he stands with Troy. The wages are therefore more than a detail: they connect the walls, the sea monster and the war into one chain of cause and revenge, and they show the Trojans as a people who had broken a bargain with the gods before the Greeks arrived.
Myth or modern invention?
Many modern accounts describe Troy as a city defended only by its walls and reduce the whole story to the Trojan Horse. In the ancient sources the walls are a divine gift, and the question of who built them is linked to the question of why the gods are on each side.
Another common error is to say that the walls were built by Poseidon alone. The Iliad and Apollodorus both name Apollo as the builder who herded the king’s cattle, and the work was shared between the two gods.
Frequently asked questions
Who built the walls of Troy?
In the Iliad, Poseidon and Apollo built the walls of Troy for King Laomedon for a fixed wage. Apollodorus gives the same story, with Apollo and Poseidon disguised as men when they came to the city.
Why did Laomedon refuse to pay the gods?
When the work was finished, Laomedon refused to pay the wages and threatened to bind the two gods and sell them overseas. Apollodorus says he wanted to test whether they were really gods.
What did the gods do after they were cheated?
Apollo sent a plague and Poseidon sent a flood with a sea monster that carried off people from the plain. An oracle said the monster would leave only if Laomedon gave up his daughter Hesione to it.
How did Heracles get involved in Troy?
Heracles saved Hesione by killing the sea monster in exchange for divine horses. When Laomedon refused to pay, Heracles sailed away and later returned to sack the city.
Did the walls of Troy hold against the Greeks?
The walls were built by the gods, and in Homer they stand throughout the ten years of the war. In later accounts the city falls to the Greeks through the trick of the wooden horse, not by breaking the walls in open battle.
Sources and further reading
- Homer, Iliad, trans. A. T. Murray (Harvard University Press, 1924)
- Apollodorus, The Library, trans. Sir James George Frazer (Loeb Classical Library, 1921)
Cite this page
“Who Built the Walls of Troy? Poseidon, Apollo and Laomedon.” Myth Atlas, https://mythology.bigworldlist.com/questions/who-built-the-walls-of-troy/.
Poseidon: more questions and myths
- ProfilePoseidon: Greek God of the Sea, Earthquakes and Horses
- QuestionDid Poseidon Create the First Horse? Myths of Poseidon Hippios
- QuestionHow Did Athens Get Its Name? Athena and Poseidon's Contest
- QuestionPoseidon's Family Tree: Parents, Consorts and Children
- QuestionSymbols of Poseidon: Sacred Animals, Objects and Meanings
- QuestionWhat Is Poseidon the God Of? Powers and Domains Explained
- QuestionWho Was the Father of Pegasus? Poseidon and Medusa
- QuestionWhy Was Poseidon Angry at Odysseus? The Cyclops Story
- ComparisonZeus vs Poseidon: How the Two Brother Gods Compare