The exterior of the Hortensia palace where the battle took place is in the Moroccan desert and the fortress was featured in Lawrence of Arabia (1962).
Despite her extensive experience as a singer, Karen David told Broadway World that she was "scared to death" when she learned she'd have to rap in the song "I Don't Like You."
Whenever possible, they tried to use the actor's live on-location vocals of the songs for the final sound mix, but this proved impossible with "Do the D'DEW" thanks to strong winds that were gusting through the Moroccan desert as the scene was filmed.
Lyricist Glenn Slater remarked that "Do the D'DEW" was inspired by the music of famed Disney songwriters The Sherman Brothers, most notably their composition "A Spoonful of Sugar" from Mary Poppins (1964).
The title of this episode is a play off the name of the last movie in the Hobbit Trilogy, The Battle of Five Armies.