During the Great Moravian period, Devín was the center of a larger agglomeration. Its defensive role was enstrengthen by smaller hill forts on Devínska Kobyla (Na pieskach, Nad lomom). A pre-romanesque church was built on the castle approximately between 850 and 863/870.