The new law will take effect next April and carries a $250 fine for anyone using smokeless tobacco on all ballfields where professional, collegiate, high school or amateur sports are played.

MORE: Rare photos of Fenway Park | Fenway’s most memorable moments

“These great baseball cities have set a powerful example that should be quickly followed by all of Major League Baseball,” Matthew L. Myers, president of the Campaign for Tobacco-Free Kids, said in a statement.

The ban has received support from both Red Sox owner John Henry and former Red Sox pitcher Curt Schilling, a former user of smokeless tobacco and a mouth cancer survivor. 

‘‘From coast to coast, the momentum is building to get tobacco out of baseball for kids, the players and the future,’’ the Red Sox organization said in a statement. ‘‘The message is clear: Our national pastime should be about promoting a healthy and active lifestyle, not a deadly and addictive product.’’