This is how Makuta joins forces with Princess Midnight Sparkle goes in Ryan's Friendship Problem.
[Meanwhile in the Shadow Realm]
Cody Fairbrother (Opposite): What is that device do, Master Makuta.
Makuta: It made someone like Dark Ryan, my apprentice.
[Makuta turns to his minions]
Makuta: My minions. Today I will take my rightful place as ruler of Equestria and the Human world. It is a victory for all that is dark and unforgiving. Our ancient code demands we never reveal the prophecy recorded in the Temple of Light. Ekimu will honor that vow...even if that means the Prime-Prince of Friendship Ryan F-Freeman and OpThomas Prime will never know their true power, and darkness will rule forever.
[Collide Bandicoot looks on]
Colide Bandicoot: True power? That could be useful. I'll go tell Gali. She can help Ryan.
[Collide runs to the portal then spots Makuta]
Collide Bandicoot: Makuta. What a surprise. I think that Ryan is a Prime-prince. What you want to do? Face me as Keyblade wielder of the light?