 After the Mongol invasion of Rus' and destruction of Kyiv, Podil transformed into the main and the most populated part of the city.However, the area of Podil shrank, in 16-17th centuries its northwestern border served the Hlybochytsia River that used to drain into Pochaina (today Hlybochytsia in the underground collector).Upon obtaining its Magdeburg rights in the 15th century, in Kyiv was built a rathaus, later Kyiv magistrate.