The Twenty-Eigth Dynasty of Egypt was the last reigning native dynasty in Egypt in the Classical time period, established following the Persian Twenty-Seventh Dynasty's expulsion by the Libyan rebel leader Inaros in 459 BC. While Inaros was successful in driving the Persians from the country he was not popular with other members of Egyptian nobility, who saw him as another foreigner unworthy of ruling Egypt.
These tensions soon boiled over and civil war nearly tore the country apart as two other nobles, Psammuthes and Amenirdisu, rose up and opposed Inaros' efforts to crown himself pharaoh. Psammuthes was able to gain the trust of the people and the religious class and at the Battle of the Three Pharaohs he defeated the other two pretenders, ousting Inaros and killing Amenirdisu, establishing the 28th Dynasty.
Inaros did not cease in his efforts to gain the throne, however, and merely retreated to the Libyan deserts in order to gather support with promises of loot and conquest. In 457 BC Inaros launched his invasion, expecting a swift victory, yet he was disappointed. After several hard fought battles and little success, his Libyan troops mutinied and turned Inaros over to Psammuthes, who promptly had him executed. With this threat to his rule finished, Psammuthes turned to other issues more prominent.
After several years of civil war, Psammuthes had to take into account the rivaling interests of the Persians, Nubians, and Athenians, all of which wanted to exert their influence over the country one way or another. To help manage these demands, Psammuthes helped rebuild Egypt's relatively decrepit military and re-establish trade in order to lessen foreign economic domination. This military would be crucial in fending off the Nubian invasion in the year 419 BC during the reign of his grandson Hakor.
For much of the dynasty's history it had to balance the competing power balance amongst the Greek states as they battled for dominance over the Aegean Sea. Inaros obtained Egyptian independence thanks to Athenian aid, but Psammuthes and his successors were much more apathetic to Athenian interests, as they suspected the intent of the Athenians to colonize Egypt for themselves. Egypt was for the most part decidedly neutral in the struggles between Athens, Sparta, and Thebes over who would have hegemony over Greece, aligning itself only with any who would leave Egyptian independence well enough alone.When Alexander the Great conquered Greece and marched into the Persian Empire, the 28th Dynasty hoped to take advantage of the distraction to invade the Levant and re-assert its authority over the region. This did not go unnoticed by Alexander, who promptly invaded the country following the conclusion to his campaigns in the east. Alexander defeated Psammuthes' descendent Nectebano at the Battle of Gaza in 324 BC, quickly sweeping aside any organized resistance and bringing Egypt into his Empire. Egyptian chronology remembers this next episode of foreign rule as the Twenty-Ninth Dynasty.