Taking its name from the ancient Egyptian nbu, meaning gold, in reference to the area's famous gold mines, Nubia was historically Egypt's gateway to the rest of Africa. From the time of the Old Kingdom, circa 2500 bc, Nubia went through alternating periods of independence and domination by Egypt, and by the Twenty-Fifth Dynasty it was enjoying long periods of stable self-rule and prosperity.