In Cyropaedia (7.5.20–33), Xenophon, in agreement with Herodotus (I.292), says that the combined Median and Persian army entered the city via the channel of the Euphrates river, the river having been diverted into trenches that Cyrus had dug for the invasion, and that the city was unprepared because of a great festival that was being observed. Cyropaedia (7.5.26–35) describes the capture of Babylon by Gobryas,[27] who led a detachment of men to the capital and slew the king of Babylon. In 7.5.25, Gobryas remarks that "this night the whole city is given over to revelry", including to some extent the guards.