Madrasa Bir Lahjar (Arabic: مدرسة بئر الأحجار) is one of the madrasahs of the Medina of Tunis.
In the same year, he commanded that the Madrasa Bir Lahjar should be built.
The construction works finished a year later in 1757 after the death of the bey.
The madrasa hosted for decades Malikite students coming from different regions in the country.
Thanks to Abu l-Hasan Ali I, the madrasa had 25 different financial resources or Habous like 5 Foundouks, 3 shops, 1 house, etc.