Vergara will play the role of Professor Barrera in an episode during the upcoming 27th season of the animated comedy show, according to the magazine.
Barrera will be a love interest of main character Bart Simpson, and his teacher Principal Skinner.
Vergara, star of hit-series “Modern Family”, is the highest paid actress on US television.
“The Simpsons” has been running since 1989.