Pazin is a Croatian town in the heart of the Istrian Peninsula and the administrative center of Istria county. The Castle of Pazin is the biggest medieval fortress in Istria and was first mentioned in written documents in the year 983. Jules Verne was inspired to use it for the plot of his 1885 novel Mathias Sandorf.