Ibrahim Riahi learned about the group of academics and lawyers from Tunisia, in particular: Hamza Al-Jibas, Saleh Al-Kawash, Muhammad Al-Fassi, Omar Bin Qassem Al-Mahjoub, Hassan Al-Sharif, Ahmed Bou Khurais, Ismail Al-Tamimi, Al-Taher Ben Massoud, and others.[2]
Sidi Brahim frequented from a young age a kouttab in Testour and showed talent for religious sciences and learning the Quran. Upon his arrival in Tunis, around 1782, he studied at the Haouanet Achour madrassah and then at the Bir Lahjar madrassah.[3]
Around 1790, he began teaching at Zitouna University where the future ministers Ibn Abi Dhiaf and Béji Messaoudi as well as the greatest theologians of the time, such as Mohamed Bayram IV and Mahmoud Kabadou, were among his students.
In 1801, he was part of an embassy in Morocco, where he stayed for several months; there he discovered the Sufi tariqa of the Tijaniyya and introduced it to Tunisia on his return.[4]