The author included this paragraph primarily to provide information about the timeline and specific regions where European countries established colonies in Africa. Therefore, the best choice is:
(D) to elaborate on when and where European countries established colonies in Africa.