Diósgyőr is a historical town in Hungary, today it is a part of Miskolc. The medieval castle in Diósgyőr was a favourite holiday residence of Hungarian kings and queens; today it is a popular tourist attraction. The city part has a heavy industrial background. The football team of Miskolc is also named after Diósgyőr; their soccer stadium lies within the district.
Dió means walnut, referring to the abundant walnut trees in the area. Győr is an archaic version of the word gyűrű, meaning "ring". It probably refers to the rounded shape of the first castle erected on the hill.
The area has been inhabited since ancient times, as the remains of a settlement found near the castle testify. The name of the town was first mentioned by the anonymous author of Gesta Hungarorum around 1200, as Geuru, the archaic spelling for Győr: "After our leader Árpád left Szerencs with his army (...) he gave the land between Tapolca and the river Sajó, called Miskolc at the time, and the town named Győr to Böngér, father of Bors."
The first castle was probably built in the 12th century, but destroyed during the Mongol invasion. The castle that stands today was most likely erected in the times of King Béla IV, in the 13th century.
The castle had its prime during the reign of Louis I (Louis the Great). In 1364 the nearby town Miskolc was annexed to the Diósgyőr estate. Diósgyőr lost some of its importance when the political union between Hungary and Poland ended.
After the Battle of Mezőkeresztes in 1596, the Ottomans occupied the area; Diósgyőr remained under Turkish occupation, ruled by the Pasha of Eger until 1687, when this part of the country was freed from Turkish rule. By this time the castle lost all of its military importance.