Sofia Vergara to Play Bart’s New Teacher on ‘The Simpsons’

Mrs. Berrera replaces Mrs. Krabappel following voice actor Marcia Wallace‘s death

Bart Simpson could do much worse for his new teacher than Sofia Vergara‘s Mrs. Berrera.

The bombshell “Modern Family” actress will guest star on an upcoming episode of Fox’s “The Simpsons,” TheWrap has learned. She may return beyond the currently in-the-can midseason episode “Teenage Mutant Milk-Caused Hurdles,” according to executive producer Al Jean.

Bart has been without a regular teacher after the 2013 passing of Marcia Wallace, who voiced Mrs. Krabappel. For the role, Wallace won a 1992 Emmy Award for Outstanding Voiceover Performance.

Wallace was diagnosed with breast cancer in 1985 and became involved in charitable groups involved with treating the disease. She was survived by a son and predeceased by her husband, Dennis Hawley.

On the long-running adult¬†cartoon, Vergara — also very attractive in animated form — will catch the eye of Principal Skinner and a suddenly pubescent Bart Simpson.

Vergara has previously lent her pipes to “Family Guy,” “The Cleveland Show” and movie “The Smurfs.” The actress has been nominated for four Emmys and four Golden Globes for her role as Gloria on ABC’s “Modern Family.”

EW first posted the “Simpsons” guest casting news.