The name first appears in cuneiform tablets from Mesopotamia from the
Ur III period (21st to 20th century BCE) in the form "Adamshakh", with a probable meaning "Crocodile (Town)". Later it was called "Andamaska" or "Andimaska", meaning "plenty of butter"; local villages like Gheel-AB and Lour and two fortresses were added to it. The city was en route to
Ilam and
Anshan and subsequently to
Lorestan, which made it strategically important until the late
Sassanid era. built several buildings, including a fortress, for his residence, which became known as Saleh Castle or Lor Castle, and during the reign of Reza Shah Pahlavi and the construction of the railway In Iran, Andimeshk railway station was built in the vicinity of Lor Castle, and Andimeshk gradually expanded with the start of construction around it. At the same time, the American General Motors Company established a branch of its military automobile factory in this city. In the second Pahlavi period, with the arrival of numerous domestic and foreign companies, Andimeshk became an industrial city and thus hosted thousands of domestic and foreign doctors, engineers, employees and workers. It was during this period that Andimeshk traveled the path of expansion and progress During the
Pahlavi dynasty era, Andimeshk received a great deal of modern development projects because of its location and resources. These included a railway, the
Dokoohe military depot and an aluminum factory-silo, as well as many other industrial developments. The city had been connected along the
Trans-Iranian Railway in 1929. During World War II a pipeline was also laid from
Abadan, then the location of the world's largest refinery, to Andimeshk; from there the fuel was re-loaded onto trucks and transported to the
Soviet Union. In 1955 the pipeline was extended from Andimeshk to
Tehran. ==Archaeology==