Alifakovac (Cyrillic: Алифаковац) is a neighbourhood in Babića bašća local community, municipality of Stari Grad, Sarajevo.
As one of the oldest urban settlements in Sarajevo, it is situated on the spine of the northern end of the slope Trebević, on the lowest hill in the row at the last meander of Miljacka, before it pours out of its narrow canyon.
Even in those times, the road was very frequent, which can be seen in the cemetery as aside of local peoples, it is the final place of many travellers and emigrants who died in Sarajevo, but also of officers, ulama and ordinary citizens.
Jakub-paša decided to build a mosque near the cemetery in 1491, after which completion the streets Veliki (big) Alifakovac, Mali (small) Alifakovac, Megara, Magoda and Carina were established, giving birth to the neighbourhood.
In the mid-16th century, at the bottom of Alifakovac, Gazi Husrev-beg's quartermaster Mustafa Vekil-Harač, built a mosque which would be soon known as the Pilgrim mosque as most pilgrims started their journey to Hajj from that place and around the same time, some mayor of Sarajevo connected the old Tsargrad road with Baščaršija square with a stone bridge which is nowadays known as Šeher-Ćehajina ćuprija, with which construction the modern landscape of Alifakovac was almost finalized.