The Matrix is based on a philosophical question posed by the 17th Century French philosopher and mathematician Rene Descartes. One of Descartes's most important theses was intellectual autonomy, or the ability to think for oneself. For Descartes, this entails not just having a “good mind”, but also “applying it well”.
Many precedents exist for the idea that the real world is an illusion, and the Matrix trilogy is riddled with specific references to philosophers who have entertained this idea. Although the films are meant to stand on their own and create their own set of philosophical questions, the Wachowskis pay homage to these precedents through both obvious and subtle references. Four of the most striking philosophical precedents for the Matrix trilogy are Jean Baudrillard’s Simulacra and Simulation, Plato’s allegory of the cave, Socrates’ visit to the Oracle of Delphi, and the work of Descartes. The films refer to all four of these at various points.