If you have Uxie and Azelf in play, the Retreat Cost for each Uxie, Mesprit, and Azelf (both yours and your opponent's) is 0.
You may switch Mesprit with 1 of your Benched Pokémon.