The historic predecessor of Makhachkala is the port town of Anji (Andzhi), which was located in Kumykia and was a part of the possessions of the Tarki state, the capital of Kumyks known from the 8th century.
Makhachkala IQ Test: Can You Outsmart the Competition?