After Sombra return, he attack Canterlot. To stop the war ponies agree to sign non-aggression pact. But there was a price to that. To seal the deal between the nations, King Sombra will get Ponyville as kingdom of his own, as well as princess Twilight Sparkle to be his wife.