This mosque has two Qiblas because it was built before the Prophet switched the Qiblah from Jerusalem to Mecca.
They also reportedly built Africa's oldest mosque, that is the Mosque of the Companions in the Eritrean city of Massawa.
In the following centuries, the consolidation of Muslim trading networks, connected by lineage, trade, and Sufi brotherhoods, had reached a crescendo in West Africa, enabling Muslims to wield tremendous political influence and power.
During the reign of Umar II, the then governor of Africa, Ismail ibn Abdullah, was said to have won the Berbers to Islam by his just administration.
Islam only crossed deeper into Malawi and Congo in the second half of the 19th century under the Zanzibar Sultanate.
Then the British brought their labor force from India, including some Muslim-Indian nationals, to their colonies in Africa towards the end of the nineteenth and beginning of the twentieth centuries.
Islam gained momentum during the 10th century in West Africa with the start of the Almoravids movement on the Senegal River and as rulers and kings embraced Islam.
Additionally, Islam in Africa has both local and global dimensions.
Generally Islam in Africa often adapted to African cultural contexts and belief systems forming Africa's own orthodoxies.
The presence of Islam in Africa can be traced to the 7th century CE, when in Rajab 8 BH, or May 614 CE, Muhammad advised a number of his early disciples, who were facing persecution by the polytheistic inhabitants of the Mecca, to seek refuge across the Red Sea in Axum.
At the same time but more toward West Africa, the reigning ruler of the Bornu Empire embraced Islam.
As these kingdoms adopted Islam, their subjects thereafter followed suit.Islam in Africa is not static and is constantly being reshaped by prevalent social, economic and political conditions.