History of the castle goes back to the age of the Roman Empire, testified by the inscription telling about the victory of the II. Roman legion at Laugaricio (the Latin name of Trenčín) in 179 AD. The oldest building is a stone rotunda, plausibly founded in the Great Moravian period. In the midst of the 13th century the castle was the seat of the Baron Jakab Cseszneky, who was King Béla IV's swordbearer. Later in the 13-14th century, the castle became the residence of Matthew III Csák, the legendary Lord of the river Váh and the Tatra Mountains. He gave name to the Matúš Tower, a keep dominating both the castle silhouette as well as that of the town. Within the precincts of the lower castle can be found the water well , also known as the well of love. Which according to legend was dug by a Turkish prince called Omar, who had great love for the beautiful Fatima, whom he had to redeem by digging a well in the rock. In fact the well was dug by a garrison in the 16th century, it took them 40 years and is approximately 80m deep.