Megaponera analis occurs throughout sub-Saharan Africa from 25° S to 12° N. Its nests are generally subterranean, up to 0.7 meters deep, and often located next to trees, rocks, or abandoned termite hills.