The town's fortress was the setting of the Siege of Szigetvár in 1566. It was a sanjak centre at first in Budin Province (1566–1601), later in Kanije Province (1601–1689).