 In the following years, during the period of the Hegemony of Thebes, the Theban general Epaminondas reinforced the Arcadian federation in order to form a rival pole to the neighboring Sparta.Then he founded Megalopolis, which became its new capital.Over the next centuries Arcadia weakened.