Between the 11th and 12th centuries, Šibenik was tossed back and forth among Venice, Byzantium, Hungary and the Kingdom of Bosnia. It was conquered by the Republic of Venice in 1116, who held it until 1124, when they briefly lost it to the Byzantine Empire, and then held it again until 1133 when it was retaken by the Kingdom of Hungary.