Gosselaar, according to TVGuide.com, will be a guest star on an upcoming episode of the series, which co-stars Kirk and Mary-Louise Parker.
The 36-year-old Gosselaar will play a love interest for Parker's character, Nancy Botwin.
Mark-Paul Gosselaar is known for his work on TNT's "Raising the Bar," "Saved by the Bell" and "NYPD Blue." The Understudy marked his New York stage debut.
"Weeds" begins its sixth season on the cable network Aug. 16.