The town called Kesh in antiquity was already an important Sogdian settlement in the Achaemenid period. It sat astride the caravan route between Samarkand and Balkh (northern Afghanistan) and had its own local dynasty from Hellenistic times through the Sasanid Persian period.
In 1336 Timur — Tamerlane — was born to a minor Barlas noble family in the village of Khoja Ilgar just outside the city. He never made Kesh his capital (Samarkand claimed that honour after 1370), but he lavished it with monuments: the Ak-Saray palace, designed to be the largest in the known world; the Dorussaadat mausoleum complex where he originally intended to be buried; and the Dorut Tilovat family shrine.
The Ak-Saray was the largest palace project ever begun in the Timurid world. Contemporary Castilian ambassador Ruy González de Clavijo, who saw it in 1404, described the entrance towers as taller than any European steeple. Only the front gate survives — two 38-metre tiled columns of what were once 65-metre towers, framing what would have been a 40-metre entrance arch.