The legal reforms of Solon served as the basis of Athenian democracy. The Athenian general Miltiades the Younger led the victory over the Persians at Marathon in 490 BC, and Themistocles was chiefly responsible for the victory at Salamis 10 years later. Pericles, the virtual ruler of Athens for more than 25 years, added to the political power of that city, inaugurated the construction of the Parthenon and other noteworthy buildings, and encouraged the arts of sculpture and painting. With the decline of Athens, first Sparta and then Thebes, under the great military tactician Epaminondas, gained the ascendancy; but soon thereafter, two military geniuses, Philip II of Macedon and his son Alexander the Great, gained control over all of Greece and formed a vast empire stretching as far east as India. It was against Philip that Demosthenes, the greatest Greek orator, directed his diatribes, the "Philippics".