Zawinski’s law states:

Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.

I wonder if there’s a corollary that applies to imperialism.

Every empire attempts to expand until it can occupy Afghanistan. Those empires which cannot so expand are replaced by ones which can.