sentences:  The mosque's origin is attributed to the efforts of the influential Islamic scholar Sheikh Muhammad al-Maghili and Sultan Muhammadu Korau of Katsina.Al-Maghili was from the town of Tlemcen in present-day Algeria and taught for a while in Katsina, which had become a centre of learning at this time, when he visited the town in the late 15th century during the reign of Muhammadu Korau.He and Korau discussed the idea of building a mosque to serve as a centre for spiritual and intellectual activities.