After the war with Chrysalis a new ruler was needed that ruler is Twilight. The war with the changelings grows on ever more and with the threat of Chrysalis coming back the mecha ponies were created.