Ancient Greece, Ancient Rome — when the population abandoned the virtues which built the civilization, then the civilization collapsed.
And the PRIMARY virtue was to create a next generation, and ensure the next generation was virtuous.