[1]
It was rebuilt by the Venetians in the 1440s and the Ottomans in 1522. In the late Middle Ages, the castle belonged to the Dukagjini family. The two brothers Tanush Dukagjini and Progon Dukagjini (sons of Lekë I) through an agreement which preserved their trade rights and estates around the castle placed the city and the castle under Venetian control in 1393 as a means to defend it against Ottoman expansion. The Venetians formally ceded the castle to the Ottomans in 1506.