Odysseus never forgave Palamedes for unmasking his madness ruse, leading him to frame him as a traitor. At one point, Odysseus convinced a Trojan captive to write a letter pretending to be from Palamedes. A sum of gold was mentioned to have been sent as a reward for Palamedes's treachery. Odysseus then killed the prisoner and hid the gold in Palamedes's tent. He ensured that the letter was found and acquired by Agamemnon, and also gave hints directing the Argives to the gold. This was evidence enough for the Greeks and they had Palamedes stoned to death. Other sources say that Odysseus and Diomedes goaded Palamedes into descending a wall with the prospect of treasure being at the bottom. When Palamedes reached the bottom, the two proceeded to bury him with stones, killing him.