This article covers the Canon version of this subject.  Click here for Wookieepedia's article on the Legends version of this subject. 

Master Qui-Gon, more to say, have you?

It is requested that this article, or a section of this article, be expanded.

See the request on the listing or on this article's talkpage. Once the improvements have been completed, you may remove this notice and the page's listing. No reason has been supplied; please provide a reason on the template or talkpage

"The Jedi Code itself may seem simple upon reading it, but the true challenge is living it. Passion can rise to the surface. Emotions can cloud our thoughts. Chaos can spiral us into the unfathomable darkness. We all find ourselves staring into the abyss at times. Only those who find a way to rise above the darkness are deemed worthy to become Jedi."
―Luke Skywalker[3]

The Jedi Code, known apocryphally as the Jedi's Meditation,[4] was a set of rules and tenets in the Jedi Order, a religious order that devoted to the ways of the Force. The Code evolved over the course of centuries and applied to all members of the Order, from Jedi Initiates and Padawans, to Jedi Knights and Jedi Masters. Among the precepts of the Code was a rule forbidding a Jedi from training more than one Padawan at any given time. The Code also embodied the philosophical ideals of the Order, such as discipline, self control, a introspection, and was developed to help the Jedi maintain their devotion to the light side of the Force by rejecting the temptations of the dark side.

During the Imperial Era, few adherents of the Jedi Code remained as a result of the Great Jedi Purge that all but eradicated the Order. When the Order was rebuilt during the New Republic Era, Jedi Master Luke Skywalker trained his apprentices, including his nephew Ben Solo, to adhere to the principles of the Jedi Code.


The Code[]

"So, the Jedi are Force users united in our quest to understand the mysteries of the Force and to serve as guardians of peace and justice throughout the galaxy. […] we ground ourselves in a spiritual existence and give up individual attachments in order to focus entirely on greater concerns."
"So, that means no sex."
Reath Silas and Affie Hollow[5]

The Jedi Code was a series of rules and tenets that governed the Jedi Order's actions and embodied its beliefs.[2] The Code taught its followers to not give in to feelings of anger toward other lifeforms, which would help them resist fear and prevent them from falling to the dark side of the Force.[6]

Caleb Dume Depa Billaba training

The Jedi Code mandated that the Jedi could train only one apprentice at any given time.

The Code forbade the Jedi from killing unarmed opponents[7] as well as seeking revenge.[8][9] Amongst other dictates, the Jedi Code forbade Jedi Knights and Jedi Masters from training more than one Padawan at a given time.[10]

Attachment was also forbidden by the Code.[8] Grand Master Yoda stressed that attachment led to jealousy, greed, and ultimately the fear of loss, all of which were paths to the dark side.[7] Ahsoka Tano also regarded attachment as dangerous, and rejected Grogu as an apprentice due to the foundling's bond with the Mandalorian bounty hunter Din Djarin.[11]

Notwithstanding the strictures against attachment, the Code emphasized compassion as an essential aspect to the Jedi way of life, teaching that all lives were precious, though outsider misunderstandings of this were not unusual.[8][12] While Jedi did not marry,[13] the Code banned neither romantic feelings[14] nor familial love.[12][15] Nevertheless, giving into personal attachment was tantamount to forsaking the way of the Jedi,[16] the teachings of which had little to do with typical family relationships.[17]


Young Kenobi

The members of the Jedi Order were raised to uphold the tenets of the Jedi Code since the earliest days of their training.

A Jedi such as Obi-Wan Kenobi, trained in the ways of the light side of the Force, could take comfort in the words of the mantra of the Jedi Code:

There is no emotion, there is peace.
There is no ignorance, there is knowledge.
There is no passion, there is serenity.
There is no chaos, there is harmony.
There is no death, there is the Force.[12]

There also existed an alternate version of the Code, recited by Jedi younglings during their Initiate Trials, and by Depa Billaba during her full fitness re-assessment after waking up from her 6-month coma:

Emotion, yet peace.
Ignorance, yet knowledge.
Passion, yet serenity.
Chaos, yet harmony.
Death, yet the Force.[18]

Following the Code[]

Conquering the dark side[]

"Part of me you are, yes. But power over me you have not. Through patience and training, it is I who control you."
―Yoda, to the shadow of his soul[19]

Jedi were taught to accept the inherent dark side within themselves and conquer it, and not let it conquer them. Fear of loss, anger, hate, jealousy, greed, and aggression—all of the dark side—had to be stripped from its influence over a Jedi through patience and training.[19]

Love and attachments[]

"Are you allowed to love? I thought that was forbidden for a Jedi."
"Attachment is forbidden. Possession is forbidden. Compassion, which I would define as unconditional love, is central to a Jedi's life. So you might say that we are encouraged to love."
―Padmé Amidala and Anakin Skywalker[8]
Anakin contacts Padme

Romantic love and attachment were antithetical to the Jedi way of life.

While the Jedi Code forbade possession and attachments, the Jedi were encouraged and trained to love in terms of compassion.[8] Indeed, Jedi Master Zallah Macri, while explained the code to her apprentice Kevmo Zink, simply noted that a Jedi was "allowed to like people and things," but they could not allow those attachments to consume them.[20] Jedi Knight Indeera Stokes stated that love, experiencing and embracing joy, affection and even grief was part of the light side, however, a Jedi couldn't be a slave of these emotions.[21]

Attachment was the inability to accept change as the fundamental characteristic of life; to accept death as the natural part of life; the inability to let go. Feeding into fear of loss and greed, leading to jealousy, attachment was selfish, a shadow of greed and thus a path of the dark side of the Force. Therefore, attachment was forbidden for a Jedi, who had to train themselves to let go of everything they were afraid to lose; to renounce all attachments. Thus, they could be compassionate and loving and caring, but not be possessive and grabbing and holding on to things, trying to keep them frozen in time, accepting the transitional nature of life. This allowed them to love the totality of life unconditionally without selectively choosing individual life-forms to become selfishly attached to.[7][22] An example of a Jedi whose attachments led to the dark side was Anakin Skywalker, who became a Sith in service to Sidious in his obsessive quest to get the power to save his wife from death.[7]

Personal relationships[]

"Falling in love—that's what the Jedi Code forbids. Getting laid? Not so much. Not if it's casual, like me and Selbie."
―Rael Averross, to Qui-Gon Jinn, defending casual sexual relationships[23]

The bond between a master and an apprentice could be akin to that of a parent and a child.

Members of the Jedi Order considered each other their family and sometimes were truly related by blood.[15][24][25] Jedi Masters developed strong, trusting and loving bonds with their apprentices whom they raised, being like a parent to them.[8] However, they were not supposed to form attachments; for the greater good, they had to be able to let go of their apprentice, and to not sacrifice a thousand lives just to save one.[26] The Jedi considered romantic feelings "natural" and as such, they did not outright prohibit them. According to Jedi Master Obi Wan Kenobi, however, they were not supposed to enter into a romantic relationship - it was essential for a Jedi Knight to make the right choice for the Order and not neglect their Jedi duties in the favor of their beloved, even if that would mean the end of the relationship.[27][28]

Jedi Knight Rael Averross believed that the Jedi code permitted casual sexual relationships as long as the Jedi did not form attachments. Averross had such a relationship with Selbie, an innkeeper on Pijal, when he served as Lord Regent of that planet. His friend and fellow Jedi Qui-Gon Jinn did not agree with this belief.[23]

Emotions and serenity[]

"How do I know the good side from the bad?"
"You will know when you are calm, at peace, passive. A Jedi uses the Force for knowledge and defense, never for attack."
―Luke Skywalker and Yoda[29]

The Jedi were encouraged to rely on their instincts over their mind.[10] They held their emotions valuable[30][31] but were also warned to be mindful of them, for they could cloud their judgment. A Jedi had to maintain a serene, quiet mind in order to stand on the light side instead of the dark—thus, they were able to keep the Force within them in balance.[29]

Peace with death[]

"Master Yoda, you can't die."
"Strong am I with the Force, but not that strong. Twilight is upon me, and soon night must fall. That is the way of things…the way of the Force."
―Luke Skywalker and Yoda[31]

The Jedi Order required its members to overcome the fear of loss, as it could lead to the dark side of the Force.

The Jedi knew that the universe was far from static, and the way of the Force was that all life forms eventually must die. They had a strong faith in the Force and found comfort in knowing that upon dying, they, just like all things that ever lived, would be transformed into the Cosmic Force,[32] the wellspring from which the Living Force emanated,[33] becoming one with it.[34] Therefore, they saw death as a natural part of life;[7] despite being saddened by it, they were advised to remember that one day they would all pass on,[32] and rejoice and celebrate those around them who passed away and become one with the Force, instead of grieving and missing them. The fear of losing the living to inevitable death was attachment, the shadow of greed.[7]


"Each member of the Jedi Order—from the youngest initiate to the wisest master—was devoted to following the Jedi Code: There is no emotion, there is peace. There is no ignorance, there is knowledge. There is no passion, there is serenity. There is no chaos, there is harmony. There is no death, there is the Force."
―Luke Skywalker[3]

The evolution of the Jedi Code spanned centuries[2] and was driven by the Jedi Order's goal of remaining true to the light side of the Force by rejecting all paths to the dark side.[35] The modern Jedi Code was believed to have been written by Jedi Master Odan-Urr.[1] Believing that using the Force was dangerous to the overall universe and having fallen in love with the Padawan Kevmo Zink, Marda Ro of the Path of the Open Hand believed she would be able to convince Zink to reject the ways of the Jedi so he could be with her and join the Path. Ultimately, however, Zink was killed by the Great Leveler, but Ro blamed the Jedi for his death by claiming they had brainwashed him into the wrong ideology.[20]

Young Anakin before the Council

The Jedi High Council upheld the Jedi Code by denying Qui-Gon Jinn's request to train Anakin Skywalker while Obi-Wan Kenobi was still his Padawan.

Although the Jedi Code required adherence from all members of the Jedi Order, Jedi Master Qui-Gon Jinn was better known for his efforts to follow the will of the Force than the tenets of the Code.[3] Jinn's willingness to defy the Jedi High Council put him at odds with the Order's leadership, as well as his Padawan, Obi-Wan Kenobi, who believed that his Master would have served on the High Council if he had followed the Code. During the final years of the Galactic Republic, Jinn offered to train the Chosen One Anakin Skywalker, but the High Council rejected his proposal, citing the Code's restriction against training multiple Padawans. By the end of the Invasion of Naboo, however, the High Council permitted Kenobi to train Skywalker in place of Jinn, who was killed by the Sith apprentice Darth Maul.[10]

Iskat Aris, who became a Jedi Knight upon the advent of the Clone Wars, struggled greatly with the Jedi Code, particularly the tenet that "there is no death, there is the Force." Observing other Jedi around her, she felt that this was a farce, merely empty words that they did not actually mean. At one point, when tasked with teaching the code to younglings, she found herself unconsciously reciting portions of the code backwards, i.e. "There is no serenity, there is passion." She claimed this to be a test for the younglings, to see if they would point it out, but it in fact reflected her own feelings.[36]

During the Clone Wars, Republic officer Captain Wilhuff Tarkin believed that the Jedi Code prevented the Order from doing what was necessary to win the war against the Confederacy of Independent Systems.[37] While Jedi General Obi-Wan Kenobi regarded the officer's views on the Code as simplistic, Tarkin felt that the Jedi should be relieved of their authority over the Grand Army of the Republic, a notion that Jedi Commander Ahsoka Tano disagreed with.[38]

Shortly before the end of the Clone Wars, Anakin Skywalker was tasked by Kenobi and the other members of the Jedi High Council to spy on his friend, Supreme Chancellor Sheev Palpatine, something which Skywalker felt was against the Jedi Code.[7]

Luke teaching Jedi

The Jedi Order was restored by Luke Skywalker, who adhered to the tenets of the Jedi Code.

As part of his efforts to rebuild the Jedi Order, Jedi Master Luke Skywalker trained his apprentices to practice the ways of the Jedi.[17] Due to his unorthodox training as a Jedi, Skywalker sought to provide his disciples with a traditional path into the Order.[3] As a Jedi, Skywalker conformed to the tenets of the Jedi Code and expected the same devotion from his pupils, including his nephew Ben Solo.[17] Having devoted his life to the Jedi way, Skywalker abstained from romantic relationships,[39] eschewed past friendships, and worked hard to restore the Order. Adherence to Jedi tenets brought satisfaction to his life, although Skywalker also felt a degree of guilt over the length of time that he spent away from his friends, notwithstanding his commitment to the Jedi Code's stance towards personal connections.[17]

In 34 ABY, Rey heard the soft chanting of the Jedi Code emanating from the tree library that contained the original Jedi texts on Ahch-To. The chanting compelled her to enter the library, where she found the texts and began learning more about the history of the Jedi Order from Luke Skywalker.[25]

Behind the scenes[]

"I, Luke Skywalker, do swear on my honor, and on the faith of the brotherhood of knights, to use the Force only for good, denying, turning always from the Dark Side; to dedicate my life to the cause of freedom, and justice. If I should fail of this vow, my life shall be forfeit, here and hereafter."
―Luke Skywalker's recitation of the "Jedi Oath"[40]

The Jedi Code was first mentioned in the 1999 film Star Wars: Episode I The Phantom Menace.[10] However, the Code's concept harkens back to early drafts for the 1980 film Star Wars: Episode V The Empire Strikes Back, in which Luke Skywalker takes the "Jedi Oath" before traveling to Cloud City in order to save his friends.[40]

The "There is no emotion, there is peace" version of the Code first appeared in the 1987 Star Wars: The Roleplaying Game.[41] It was there accompanied by a set of practical rules, more akin to a code of conduct, such as not acting for personal gain or trying as hard as possible to preserve life (while acknowledging that killing may at times be necessary).[41] While the "mantra" part of the code lived on in later material, the code of conduct passed into obscurity. The "Emotion, yet peace" version of the mantra first showed up in the roleplaying game sourcebook Tales of the Jedi Companion from 1996.[42]

In some Legends materials "attachment" was used in terms of fondness, affection, love or loving commitment, stating that the Jedi were forbidding these emotional bonds.[43][44][45] By contrast, George Lucas explained that the Jedi were trained, allowed and expected to love people, even their enemies, the Sith, but they were not supposed to form attachments, because attachment led to the dark side of the Force. When one possessed or had some other attachment to something—be it pleasure, a person or experience—one became afraid to lose it. The fear of loss fed into greed; an attached person was selfish and unable to let go. This turned into anger, which would lead to hate, and hate would lead to suffering, mostly on the part of the one who was selfish, because then one would spend their lives being afraid rather than actually living. But compassion was caring and giving and thus it was love, but the opposite of attachment; it was everlasting joy, devoid of fear of loss and the pain of loss. Lucas said, "As long as you love other people and treat them kindly, you won't be afraid."[46][47]

George Lucas, identifying himself as Buddhist Methodist or Methodist Buddhist, stated that his philosophy depicted in his movies was influenced by the fact that he was from San Francisco, the "Zen Buddhism capital of the United States."[47] When author Tom Veitch asked Lucas for guidance about the spiritual aspect of the Jedi when developing the Legends comic series Tales of the Jedi, Lucas told him "Look to Buddha."[48] In 2020, he indicated that the Jedi were "designed to be a Buddhist monk who happened to be very good at fighting."[22]



Non-canon sources[]

Notes and references[]

  1. 1.0 1.1 Nexus of Power
  2. 2.0 2.1 2.2 The Star Wars Book
  3. 3.0 3.1 3.2 3.3 Star Wars: The Secrets of the Jedi
  4. Guardians of the Whills
  5. The High Republic: Into the Dark
  6. Ultimate Factivity Collection: Star Wars
  7. 7.0 7.1 7.2 7.3 7.4 7.5 7.6 Star Wars: Episode III Revenge of the Sith
  8. 8.0 8.1 8.2 8.3 8.4 8.5 Star Wars: Episode II Attack of the Clones
  9. TCW mini logo Star Wars: The Clone Wars — "Lair of Grievous"
  10. 10.0 10.1 10.2 10.3 Star Wars: Episode I The Phantom Menace
  11. The-Mandalorian-logo The Mandalorian — "Chapter 13: The Jedi"
  12. 12.0 12.1 12.2 Dark Disciple
  13. StarWars Anakin Skywalker in the Encyclopedia (content now obsolete; backup link)
  14. TCW mini logo Star Wars: The Clone Wars — "The Rise of Clovis"
  15. 15.0 15.1 TCW mini logo Star Wars: The Clone Wars — "The Unknown"
  16. The Book of Boba Fett logo The Book of Boba Fett — "Chapter 6: From the Desert Comes a Stranger"
  17. 17.0 17.1 17.2 17.3 Shadow of the Sith
  18. Kanan 7
  19. 19.0 19.1 TCW mini logo Star Wars: The Clone Wars — "Destiny"
  20. 20.0 20.1 The High Republic: Path of Deceit
  21. The High Republic: The Rising Storm
  22. 22.0 22.1 The Star Wars Archives: Episodes I–III, 1999–2005
  23. 23.0 23.1 Master & Apprentice
  24. TCW mini logo Star Wars: The Clone Wars — "The Gathering"
  25. 25.0 25.1 Star Wars: Episode VIII The Last Jedi
  26. TCW mini logo Star Wars: The Clone Wars — "Jedi Crash"
  27. TCW mini logo Star Wars: The Clone Wars — "Voyage of Temptation"
  28. TCW mini logo Star Wars: The Clone Wars — "The Rise of Clovis"
  29. 29.0 29.1 Star Wars: Episode V The Empire Strikes Back
  30. Kanan 1
  31. 31.0 31.1 Star Wars: Episode VI Return of the Jedi
  32. 32.0 32.1 TCW mini logo Star Wars: The Clone Wars — "The Jedi Who Knew Too Much"
  33. TCW mini logo Star Wars: The Clone Wars — "Voices"
  34. TCW mini logo Star Wars: The Clone Wars — "Weapons Factory"
  35. StarWars-DatabankII The Force in the Databank (backup link)
  36. Inquisitor: Rise of the Red Blade
  37. TCW mini logo Star Wars: The Clone Wars — "Counterattack"
  38. TCW mini logo Star Wars: The Clone Wars — "Citadel Rescue"
  39. Skywalker: A Family at War
  40. 40.0 40.1 Star Wars: The Annotated Screenplays
  41. 41.0 41.1 Star Wars: The Roleplaying Game
  42. Tales of the Jedi Companion
  43. The Jedi Path: A Manual for Students of the Force
  44. The Clone Wars: No Prisoners
  45. The Old Republic: Deceived
  46. Dark Victory by Richard Corliss & Jess Cagle on TIME (April 29, 2002) (archived from the original)
  47. 47.0 47.1 YouTube Mellody Hobson George Lucas - Virtual Speaker Interview on the Star Wars Universe YouTube channel (March 24, 2021) (backup link) (45m32s)
  48. Star Wars Galaxy Magazine 13