After the deaths of both Darth Vader and the Emperor and the Empire's loss on the Battle of Jakku, the Empire surrendered to the Rebel Alliance. The Rebels then created the New Republic. The Empire may have surrendered, but some of the Empire's leaders who were still alive created a new military based on the Empire, the First Order. They rebuilt by buying weapons and spaceships from greedy merchants in the Outer Rim and taking over planets with many resources they could use to buy more weapons. They also kidnapped many babies and forced them to become stormtroopers. They secretly built a superweapon called Starkiller Base. They used the weapon to blow up the capital of the New Republic, Hosnian Prime.