The Legends of Dune prequel trilogy (2002–2004) by Brian Herbert and Kevin J. Anderson, set over 10,000 years before the events of Dune, chronicles the struggle between humans and thinking machines that would eventually become known as the Butlerian Jihad. The series explains that mankind had become entirely complacent and dependent upon thinking machines; recognizing this weakness, a group of ambitious, militant humans calling themselves the Titans use this widespread reliance on machine intelligence to seize control of the entire universe. The Titans soon make the transition into cyborgs called cymeks; through the use of specialized interfaces, their brains are installed inside giant, mobile, mechanized "bodies." These fearsome, weaponized bodies make the Titans virtually immortal – and unstoppable. They later convert a number of subservient humans into an army of "neo-cymeks" to enforce their rule over the universe, and this so-called "Time of Titans" lasts for a century.
Eventually the Titan Xerxes lazily grants too much access and power to the AI program Omnius, which usurps control from the Titans themselves. Seeing no value in human life, the thinking machines – now including armies of robot soldiers and other aggressive machines, with the Titans as their commanders – dominate and enslave nearly all of humanity in the universe for 900 years, until a jihad is ignited by the independent robot Erasmus's murder of Manion Butler, the young son of Serena Butler. This crusade against the machines lasts for nearly a century, with much loss of human life, ending in human victory at the Battle of Corrin. The Jihad also gives rise to the Bene Gesserit, the Spacing Guild, the Sardaukar army, the Landsraad, and even House Corrino, whose Padishah Emperors rule the universe for the next 10,000 years, until the events of Dune and the ascension of Paul Atreides.
Read more about this topic: Butlerian Jihad