“If you would just follow the Code, you would be on the Council.”
―Obi-Wan Kenobi, to Qui-Gon Jinn
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 forbid Jedi Knights and Jedi Masters from taking on more than one Padawan at a given time; and forbid Jedi from forming attachments, such as marriage. During the Clone Wars, there were those in the Grand Army of the Republic, such as Wilhuff Tarkin, who believed that the Jedi Code prevented the Order from doing what was necessary to win the war against the Confederacy of Independent Systems. Shortly before the end of the Clone Wars, the Jedi Council, through Obi-Wan Kenobi, asked Anakin Skywalker to spy upon the activities of his friend Supreme Chancellor Palpatine, something which Anakin felt was against the Jedi Code.