Give two ways through which Islam had spread in Africa by the 16th Century

Give two ways through which Islam had spread in Africa by the 16th Century