Brewer senior Josiah Cyr smacked a walk-off single to right field against the Wells Warriors in Saturday's Class B championship game, giving the Witches their first state baseball title in school history.

Cyr's line drive to deep right gave the Witches a 3-2 come-from-behind victory at Mansfield Stadium in Bangor.

Wells (17-3) scored the first run of the game in the top of the first on an RBI single from catcher Michael Wrigley.

The Warriors took a 2-0 lead on an RBI single from second baseman Gary Andrews in the top of the sixth.

The RBIs from Wrigley and Andrews were the only runs allowed by Brewer pitcher Evan Andrews. The senior gave up just four hits and two walks while striking out six in 5.1 innings.

Wells pitcher Tyler Carpenter shutout Brewer (15-5) through five innings before allowing a pair of unearned runs in the bottom of the sixth.

Cyr reached base on an error and scored on a groundout by third baseman Levi Williamson.

Catcher Andrew Kiley also reached base on an error in the sixth and then scored on a wild pitch.

Witches left fielder Kyle Goodrich singled to lead off the bottom of the seventh. He advanced to second on a wild pitch and then moved to third on a bunt by center fielder Ben Byorak. Goodrich scored the winning run on Cyr's one-out single.

Brewer won the Class B championship after returning just one starter from the 2017 season, senior Kobe Rogerson.

The 2018 season was the Witches' first year competing at the Class B level after dropping from Class A due to classification changes by the Maine Principals Association.

Photo Gallery: Brewer wins 2018 Class B state title