The Jedi Code was a set of rules that governed the behavior of the Jedi Order. It taught its follower 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.
Amongst other dictates, the Jedi Code forbade Jedi Knights and Jedi Masters from taking on more than one Padawan at a given time; and forbade Jedi from forming attachments, such as marriage, and other specific, individual bonds, such as romantic love and family. Few understood that this practice of nonattachment did not mean the Jedi were strangers to compassion when, in fact, they believed that all lives were precious.
- 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.
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.