The 19-year-old 'Baby' hitmaker appeared in an episode called 'The Fabulous Faker Boy', reported Sun Online.
In the episode Marge encourages Bart to take piano lessons, but he isn't interested until he meets his beautiful piano teacher Zhenya, voiced by 30 Rock star Jane Krakowski.
Keen to show off his talent, he takes part in a 10-And-Below Talent Show, which Bieber tries to attend.
At the auditions the security guard who says to him "First of all you're over 10-years-old. Second of all you're Justin Bieber."
After his cameo another message popped up that said "All clear, 'The Simpsons' will be Bieber-free from this point on.