Ali Pasha Mosque or Alipašina džamija was constructed in Sarajevo, Bosnia and Herzegovina during 1560–61 as a vakıf—the legacy or perpetual endowment—of Sofu Hadım Ali Pasha, an Ottoman statesman who served as the governor of the Bosnia Eyalet of the Ottoman Empire amongst other roles, after his death in September 1560.