system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] Why did Revan and Malak betray the Jedi Order?

I know Revan and Malak are legends and probably were not real but I'd like to know what exactly was the Jedi Civil War and why and how Revan and Malak betrayed the Jedi Order.

Bonus points for a little backstory on the Mandalorian Wars and what led up to it, which is the event which led to the Jedi Civil War.
gpt
The Mandalorian Wars were just that, a war against the Mandalorian people. They were a warrior race from beyond the Outer Rim that lived to fight and conquer. When they showed up and started rolling through planets, the Republic just couldn't stand up to them, owing to their complacency from long peace. The people begged the Jedi to intervene, and many of the young Knights wanted to help, but their Masters decided to wait and meditate on the issue before acting. 

This is where Revan and Malak come in. Revan was extremely talented and charismatic, with a major following among the younger members of the Order. After some rabble rousing, Revan led a large number of Jedi in deserting the Order and joining up with the Republic forces battling the Mandalorians, and they immediately gave command to Revan. He quickly displayed his tactical genius in stopping the Mandalorian advance cold, and then pushing them back, winning battle after battle. Revan was often coldly strategic and wouldn't hesitate to order men to their deaths, but his people followed him fanatically. Eventually the Mandalorians were defeated in one major battle at Malachor V with the use of a super weapon and at the cost of many lives. The Mandalorians were completely crushed, with the few survivors scattered throughout the Galaxy, but all of them had a deep respect for Revan and held him solely responsible for defeating them.

The Republic was pleased that the war was over, but instead of returning as heroes, Revan took the ships, men, and Jedi under his command and disappeared for several years. When he returned it was as Darth Revan and with a new fleet of ships, calling themselves the Sith Empire. This had been Revan's true purpose. He left the Order to gain an army and track down an ancient space station from a long dead race. Powered by the Dark Side, this station could crank out unlimited ships and weapons, which Revan used to fuel his campaign to conquer the Galaxy.