The building of gates in the Caucasus Mountains by Alexander to repel the barbarian peoples identified with Gog and Magog has ancient provenance and the wall is known as the Gates of Alexander or the Caspian Gates. The name Caspian Gates originally applied to the narrow region at the southeast corner of the Caspian Sea, through which Alexander actually marched in the pursuit of Bessus in 329 BC, although he did not stop to fortify it. It was transferred to the passes through the Caucasus, on the other side of the Caspian, by the more fanciful historians of Alexander. The Jewish historian Flavius Josephus (37–100 AD) mentions that: