Lahore Fort was rebuilt by Malik Ayaz Ghazni; adorned by Akbar and his successors
According to securely documented history Lahore fort was built long before Mughals. Records say 1st Ghaznavid governor of Lahore Malik Ayaz rebuilt the fort and its walls (Ian Talbot &Tahir Kamran,2017) which is backed by the archaeological excavation report of Department of Archaeology and Museums Government of Pakistan 1959.
Who built it originally???
In the said excavation a gold coin from Ghaznavid period and occupation levels much older than the Ghaznavid period( pre Muslim era); a roughly 12feet high mud brick wall was recorded. Archaeologists regard it as the fortress which was attacked by Mehmud of Ghazni during his invasion.
Akbar brought transformation to the fort and turned it into an extraordinary monument. He shaped the fort with the use of baked brick and red sand stone:that gave birth to richly embellished and adorned palaces and courts at the fort.
Jahangir added more decoration and a striking feature as Picture Wall. Picture Wall is a fine piece of Art with glazed tiles, mosaic work, geometric designs, courtly scenes, flora and fauna.
Shah Jahan brought white marble- built Sheesh Mehal, Naulakha Pavillion, Moti masjid, mirror work and petra-dura into the heart of the fort.
Aurangzeb gave gigantic and monumental the Alamgiri Gate facing Badshahi Mosque.
Later, it became royal residence of Ranjit Singh and then came under the use of British.