The rulers of ancient Egypt lived in glorious opulence, decorating themselves with gold and perfumes and taking their treasures to the grave. New research reveals how such a despotic system could arise from egalitarian hunter-gatherer societies.