According to a legend, in 1421 an Islamic trader named Ayuba had a dream while staying here, near a
"mystic stone", instructing him to build a mosque. Strangely, when he awoke, he found that the foundations were already in place and he proceeded to construct the mosque until it was completed. There is a belief that he left instructions that he should be buried close to the mosque, when he dies, and after three days, the
baobab which would shoot up on his grave was to be preserved for generations. The baobab tree next to the mosque today is reputed to mark the site of Ayuba's grave. Owing to the effect of prevailing winds and rains on the walls, the mosque has needed several renovations and restoration work which over the years have altered some of its exterior designs. In September 2002, a severe storm destroyed the
mihrab and the
minaret. As a result, the World Monuments Fund (WMF) placed the mosque on the
2002 World Monuments Watch, The renovation resulted in reassessing the state of conservation of the site, involving a team of local artisans and labourers. It helped to restore the monument with special emphasis on reviving the knowledge of Adobe maintenance. ==Features==