In 1156, Knyaz Yury Dolgoruky fortified the town with a timber fence and a moat. In the course of the Mongol invasion of Kievan Rus', the Mongols under Batu Khan burned the city to the ground and killed its inhabitants.