On the musical-themed episode "Haw-Haw Land," a La La Land parody that's due to premiere during the show's record 29th season, Sheeran will voice a musician named Brendan who becomes Lisa Simpson's love interest and Milhouse's nemesis, Entertainment Weekly reports. Sheeran will also sing during the episode.
"This year continues to be equally surreal and amazing. Watch out for this one, me and Lisa have a whole thing going on," Sheeran wrote on Instagram.
Sheeran is a longtime fan of the show; the singer even has a tattoo of Blinky, the series' three-eyed fish. When producers found out about Sheeran's Simpsons love, they approached him about the role.
"We had a perfect part for him," executive producer Al Jean told EW of Sheeran. "So we said, 'Oh, great, we'll have him do this!' And we recorded him over the phone from England."
The Simpsons returns October 1st.