This species of Vachellia is native to eastern and southern Africa (Botswana, Kenya, Malawi, Mozambique, Somalia, South Africa, Eswatini, Tanzania, Zambia, Zimbabwe). It has also become a landscape tree in other warm climates, outside of its natural range.
The name xanthophloea is derived from Greek and means “yellow bark”. The common name, fever tree, comes from its tendency to grow in swampy areas: early European settlers in the region noted that malarial fever was contracted in areas with these trees. It is now understood that malarial fever is spread by mosquitos living in the swampy areas that often support this tree species, and not by the tree species itself. This is because mosquitos often lay eggs in moist swampy areas, and they need blood to do that. Wikipedia