BRUNSWICK, Maine — The Ellsworth High School Eagles dominated the Class B swimming and diving state championships from the get-go, grabbing the lead in the opening race and never let go en route to a 362-point win Tuesday at Bowdoin College.

Cape Elizabeth took second with 271.5 points, while Mount Desert Island came in third and was followed by Old Town (207) and Morse of Bath (197) to round out the top five of 23 scoring teams.

Senior Talor Hamilton, who was part of four meet records on the day, headlined the event and brought Ellsworth its first-ever state swimming title with victories in the 50- and 100-yard freestyles and helping his team win the 200 medley relay and and 400 free relay.

His 50 free time of 21.19 seconds set a meet record and was less than a second off the state record of 20.94 held by James Wells. Hamilton’s first-place time in the 100 free (46.42) was almost a full two seconds better than Camden Hills’ Kyle Crans’ time in second place, and set another meet record.

Hamilton narrowly missed a state record of 46.24, which recently was set by Brunswick’s Nate Samson.

Hamilton, along with Sam Alvarado, Camden Holmes and Cooper Holmes, set his third meet record of the day in the 200 medley relay, where the team finished first with a time of 1:38.02. The time was also good for a state record. The same foursome took home the first-place medal in the 400 medley relay (3:17.13) to close out their dominant day in the pool.

“He’s a fantastic swimmer,” Ellsworth coach Jim Goodman said of Hamilton. “I’ve had him for four years. I’ve known him since he was in my beginning swim class, and I’ve watched him progress. He’s done an awesome job, and he’ll be a great swimmer in college too.”

“It’s crazy,” Morse’s Tucker Banger said of lining up next to Hamilton. “You get up next to him, he scares you he’s so tall. He goes all the way underwater. Scary.”

Other first-place finishes for Ellsworth included Alvarado in the 500 free (4:53.88) and Cooper Holmes in the 100 backstroke (52.51).

Alvarado also took second place in the 200 free (1:48.13), with Hayden Sattler taking the same spot in the 100 breaststroke (1:03.15) and Richie Matthews placing third in the 100 fly (54.83).

“I can’t tell you how proud I am,” Goodman said. “This is just a fantastic feeling for them. Excellent. They’ve all come down in times, and put out the very best effort.”

Mount Desert Island’s lone first-place medal came from Liam Sullivan, who narrowly topped Cooper Holmes in the 200 IM with a time of 1:57.08.

Sullivan also was part of an MDI relay team (Jacob Mitchell, Pierce DiMauro, Hutchin Gerrish) that took second place in the 200 medley with a time of 1:41.82. Mitchell, DiMauro, Sullivan and Kristoph Naggert finished second in the 400 medley relay (3:21.84).

Individually, DiMauro placed fourth in the 200 free (1:50.01) and sixth in the 100 free (50.40), while Gerrish took fourth in the 200 IM with a time of 2:08.53. DiMauro’s brother Bryce also placed second in the 1-meter diving event, with a total score of 294.50.

Old Town had a pair of second-place finishes from Nick Gould, who swam the 100 backstroke in 55.42 and the 100 fly in 54.47.

Old Town’s relay team of Drew St. Jean, Garrett Stoyell, Jake Ketch and Gould also grabbed second place in the 200 free, with a time of 1:32.22. Nate St. Jean, Stoyell, Gould and Ketch finished fourth in the 200 medley relay, while Ketch took two top-five finishes individually — third in the 100 free (49.93) and fourth in the 50 free (22.85).

Camden Hills recorded a sixth-place team finish behind Crans, who also picked up a first place in the 200 freestyle (1:47.88) while teammate Julian Abaldo finished first in the 100 butterfly (53.46).

Both swimmers were part of the Windjammers’ winning 200 free relay team along with Connor O’Farrell and Cooper Russell.