however, people who still believed in the republic created the rebel alliance and fought a war against the empire. after the deaths of both darth sidious and darth vader and the battle of jakku, the empire surrendered to the rebel alliance. this ended the war and the new republic was created, but the new republic was destroyed only a few decades later. this was because the first order, the military that was created from what was left of the empire, created a superweapon called starkiller base. they used the weapon to blow up the capital of the new republic, hosnian prime.