The town of Loulan was abandoned in 330 CE, likely due to lack of water when the Tarim River, which supported the settlement, changed course; the military garrison was moved 50 kilometers south to Haitou (海頭).