Zardoz
In 2293, overdeveloped technology leads to the people of Earth splitting into two factions; the Brutals are a savage group who worship a god called Zardoz, and the Eternals are an intellectual oligarchy that created Zardoz to control the savages.