The Jedi (//), Jedi Knights, or the Knights of the Jedi Order are the main protagonists of many works of the Star Wars franchise, often working symbiotically alongside the Galactic Republic and the Rebel Alliance. The Jedi Order are depicted as a monastic, academic, and meritocratic organization whose origin dates back thousands of years before the events of the first film released in the franchise. The fictional organization has inspired a real-world new religious movement, Jediism.
The Jedi Order were powerful Force-wielding beings, guardians of peace and justice in the Star Wars galaxy. As George Lucas explained, the Jedi Knights were “warrior-monks who keep peace in the universe without resorting to violence.” He added, the Jedi “use their power to keep the governments of all the planets in line, so that they don't do terrible things.” The Jedi have the “moral authority to do that” since they are “the most moral of anybody in the galaxy.” With their main temple located in the Republic capital, Coruscant, the Jedi "brought peace into the galaxy by being ambassadors and troubleshooters.”
Their creed demands that they defend and protect all life and use their power for knowledge and defense, never to attack. The Jedi Order moral value system viewed fear to be the root of suffering: fear led to anger, anger lead to hate, and hate led to suffering. The Jedi philosophy emphasized the importance of mindfulness, non-attachment and the cultivation of compassion - when one become attached to something, they become afraid of losing it, and the fear of loss was the path to the dark side, leading to hate. Whereas compassion, unconditional love wasn't interlocked with fear of losing, and it was central to the Jedi's life. This philosophy is a recurring theme in the Star Wars universe.
Throughout its existence, the Jedi have investigated crimes ranging from murder to political corruption, acted as peacekeepers and as detectives, protected the chancellors and senators of the Republic, tracked down fugitives, and served as generals in the Clone Wars at the service of the Republic.
In Star Wars' narrative conflicts, the Jedi are the antithesis of the Sith, another group of force wielders—the Sith relied on their passions, their aggression, hate, fear, anger and bitterness to achieve their goals. The Sith are "dark mirrors" to Jedi; Sith seek absolute rule over the galaxy, while the Jedi protected democracy, peace and justice.
A Jedi's traditional weapon is the lightsaber, a device which generates a blade-like plasma powered by a Kyber crystal or other focusing items. The blade can shine blue, green, yellow, purple, orange, cyan, indigo, and magenta. The lightsabers that Ahsoka Tano made after The Clone Wars shined a bright white, signifying that she was not a Jedi nor a Sith, after she was wrongly accused of bombing the Jedi Temple on Coruscant, in which she was ordered to be executed before being found innocent and all charges were dropped. Tano left because her feelings for the order weren't the same.