According to one tradition, in the Middle Ages it was the capital of the Slavic state of Great Moravia. In the 1990s it was visited twice by Pope John Paul II.