Other smaller settlements were founded during the Late Middle Ages after the Mongol invasion, such as Abdullaevsky and Shainak. Timur conquered the region during this time period and various other empires controlled the city. The city's economy began to rely more heavily on crafts and trade.