The oldest traces of Slavic settlement date from the 8th century, and in the 9th century a fortress from the period of the Great Moravian Empire is believed to have stood here, linked to ruler Prince Rastislav.
https://www.visitbratislava.com/places/devin-castle/