A taxonomic revision of the Afrotropical species of Stylogaster Macquart is presented and 21 new species are described: S. acanthocercus sp. n., S. amplicercus sp. n., S. clementsi sp. n. (all Madagascar), S. copelandi sp. n. (Kenya), S. fanjae sp. n., S. hauseri sp. n., S. hirsutifemora sp. n., S. irwini sp. n. (all Madagascar), S. kakamegensis sp. n., S. kenyensis sp. n. (both Kenya), S. kirkspriggsi sp. n. (South Africa), S. kroeberi sp. n., S. latifrons sp. n., S. parkeri sp. n., S. pseudofanjae sp. n., S. ranomafanensis sp. n., S. rinhaii sp. n., S. schachti sp. n., S. smithi sp. n., S. spinicercus sp. n., and S. stuckenbergi sp. n. (all Madagascar). A lectotype is designated for S. seyrigi Seguy, 1932 and a neotype for S. frontalis Krober, 1914. The male terminalia of S. frontalis Krober, 1914, S. pauliana Camras, 1962, S. malgachensis Camras, 1962, S. seguyi Camras, 1962 and S. seyrigi Seguy, 1932 are illustrated for the first time. New faunistic records are presented for nine previously described species of Stylogaster. An identification key to Afrotropical Stylogaster is presented. A total of 34 valid species of the genus are now known from the Afrotropical Region.