The BBC confirmed the Prince of Wales and the Duchess of Cornwall would be appearing in an episode earlier this month.
At the end of the episode, a special theme tune in tribute to the royal appearance aired.
The tune had been composed by the original theme tune composer Simon May.
Chris Clenshaw, Executive Producer, said: “To have Prince Charles and the Duchess of Cornwall not only visit us all in Walford but to also appear in an episode, we felt it was only right that we marked this extremely momentous episode with a fitting tribute and what better way than to wish Their Royal Highnesses on their way from Albert Square than with a special Jubilee version of our iconic theme tune, remastered by the very talented Simon May.”
The scenes were filmed in March earlier this year when the royal couple visited the EastEnders set.