 In 1441 Mohamed Naddah, the city-governor of Timbuktu, appointed his close friend Sidi Yahya as its first imam.This marked the beginning of the mosque as a madrassa and a great center of learning for the region.The Sidi Yahya mosque was restored in 1577 or 1578 by Cadi Al Akib.