After the Tatar invasion
In the middle of the thirteenth century, after the Tatar invasion,
significant fortification work began all over the country. This was when the
royal castle and the walled city were built on Castle Hill, on an elevated
terrace of the Danube which could be easily defended. This third city was
called Buda, its inhabitants presumable coming mainly from Pest. In the Middle
Ages Buda gradually emerged from among the Hungarian towns, and it reached its
peak in the second part of the fifteenth and the early sixteenth centuries.