Cyrus, assisted by Amorges, marched against Croesus and the city of Sardes. By the advice of Oebaras he set up wooden figures representing Persians round the walls, the sight of which so terrified the inhabitants that the city was easily taken. Before this, the son of Croesus was handed over as a hostage, the king himself having been deceived by a divine vision. Since Croesus was evidently meditating treachery, his son was put to death before his eyes; his mother, who was a witness of his execution, committed suicide by throwing herself from the walls. After the city was taken Croesus fled for refuge to the temple of Apollo; he was three times put in chains, and three times loosed invisibly from his bonds, although the temple was shut and sealed, and Oebaras was on guard. Those who had been prisoners with Croesus had their heads cut off, on suspicion of having conspired to release him. He was subsequently taken to the palace and bound more securely, but was again loosed by thunder and lightning sent from heaven. Finally Cyrus, against his will, set him free, treated him kindly from that time, and bestowed upon him a large city near Agbatana, named Barene, in which there were 5000 horsemen and 10,000 peltasts, javelin-throwers, and archers.