The Jedi Civil War, also known as the Second Sith War, the Old Republic Insurrection, and by the Mandalorians as the War of the Star Forge, was a devastating conflict that began when the Jedi Knight Revan, who had led the forces of the Galactic Republic to victory in the Mandalorian Wars, founded his own Sith Empire and declared himself the Dark Lord of the Sith. The war began when he, along with his friend and apprentice Darth Malak, led an invasion of the Galactic Republic in the year 3958 BBY. With the aid of veterans from the Mandalorian Wars and a host of Dark Jedi converts that had served with them, the former Jedi hoped to take over the Republic in anticipation of a greater threat posed by a Sith Empire that lurked within the Unknown Regions of the galaxy. During the war, Darth Revan brought the Republic to its knees and nearly succeeded in conquering it, however, a trap set by the Jedi and unwittingly abetted by Malak left him comatose, with his mind nearly destroyed. Barely alive, he was taken from the wreckage by the Jedi Knight Bastila Shan, whose skills in battle meditation and the Force had allowed the mission to happen. Taken to the Jedi Enclave on Dantooine, Revan was healed by the Jedi Council and reprogrammed to believe that he was an agent loyal to the Republic. Revan was assigned under the command of Shan, who was then placed aboard the Endar Spire. In 3956 BBY, with the intention of drawing out Revan's fragmented memories of the Star Forge, the vast space station that was the source of the seemingly endless resources of the Sith, he was taken to the ecumenopolis of Taris where a Sith fleet under the direct command of Malak was waiting in ambush. Eventually escaping from Taris, Revan, along with Shan, the Republic commander Carth Onasi, and several others, fled to the Dantooine Academy, where the Jedi Masters there retrained him. After several weeks, the Dantooine Council sent him and the crew of the Ebon Hawk back out into the wider galaxy to track down the Star Forge's location, at the heart of the ancient Infinite Empire of the Rakata.