The Castle Quarter (Hungarian: Várnegyed) is the part of Buda in Budapest, the capital city of Hungary, that lies within the defensive walls of the Buda Castle complex, corresponding to the medieval royal city of Buda. Located on Várhegy (lit. 'Castle Hill'), it is the oldest part of Budapest, having been continuously inhabited since 1247. The center of the neighborhood are the streets between the Royal Palace and Matthias Church.