This mosque was built by Sahabi Uqba-bin-Nafe (may Allah be pleased with him) from 670 CE. at the founding of the city of Kairouan in Tunisia.
Uqba-bin-Nafe (may Allah be pleased with him) was a military general who launched the Islamic conquest of the Maghreb, including modern western Algeria and Morocco in North Africa. He used Kairouan as a base for operations. The mosque became an important center for the study of Islam and the Quran learning and attracted a large number of Muslims from different parts of the world. The mosque is located on an area of 900 square meters and is considered a model for all later mosques in the Maghreb in the western Islamic world.
Uqba-bin-Nafe (may Allah be pleased with him) was killed and buried near Biskra in Algeria.
Sources: Wikipedia and Youtube.