LEWISTON — At the beginning of the season, Cape Elizabeth boys’ tennis coach Andy Strout pointed out to his team that three schools each had won 15 state titles: South Portland, Lewiston and Cape Elizabeth.

He didn’t mention it again.

“It was definitely in the back of my mind but not something we talked about,” said Cape Elizabeth senior Luke Gilman. “It felt great to get him this one.”

Gilman led a singles sweep Saturday at Lewiston High as Cape Elizabeth turned aside a challenge from Camden Hills 4-1 for a third straight Class B state championship.

In the girls’ Class B final, Greely also repeated as champion with a 5-0 shutout of Mt. Desert Island.

Cape Elizabeth (13-3) and Camden Hills (14-2) met a year ago with the Capers easily sweeping singles and barely winning doubles.

Although many of the characters were different Saturday, the plot remained similar.

Gilman won quickly at No. 2 singles, dropping only one game. Ethan Murphy had more trouble at No. 3 before prevailing 6-3, 6-4 over Matt Morse of Camden Hills.

That allowed Michael Mills to clinch at No. 1 by reeling off 12 straight games after falling behind 2-0 to Austin Pohlman, a left-hander.

“I attribute it,” Pohlman said to Mills after shaking hands, “to you warming up and starting to crush the balls back.”

Mills played doubles on Cape Elizabeth’s 2013 championship team but opted for USTA tennis last spring to focus on his New England ranking. Did he miss the team atmosphere?

“A lot,” he said after high-fiving teammates after his match.

“It’s a great feeling to have the support from all my friends.”

When Mills trailed 2-0 at the start, both doubles matches were headed to a third set and Murphy had his hands full with Morse, a case of “an athlete against a younger kid,” Strout said.

“I knew my match was going to be crucial,” Murphy said. “His first serve, when it went in, he almost always won the point. So it was key that I took advantage of his second serve.”

Morse fought off one match point but Murphy converted the second to give Cape Elizabeth a 2-0 lead and set the stage for Mills.

The doubles matches were highly competitive, with Conner Sullivan and Jimmy Salerno of Cape Elizabeth shrugging off an inglorious tiebreak to win 6-7 (0), 6-4, 6-4 at No. 2.

On an adjacent court, Jared Garske and Colby Arau of Camden Hills rallied to a 3-6, 6-2, 6-4 victory at No. 1.

“We just dug deep,” Salerno said. “This was Conner’s senior year and it meant so much to him. Although it wasn’t a critical point to the overall outcome, it was a critical point to us.”

In the girls’ match, Greely won easily at first doubles with Mia Lambert and Jessie Hoffman (6-2, 6-0,) but struggled to win 6-2, 3-6, 6-0 with Sam Kennedy and Madelyn Day at second doubles.

“We knew we had a title to defend,” Hoffman said. “We had that in our minds rather than cockiness.”

In singles, freshman Izzy Evans clinched the match with a 6-0, 6-0 victory at No. 1, Kathryn Pare won 6-1, 6-4 at No. 2 and Alex Tebbs outlasted Maeve Geary of MDI 3-6, 6-4, 7-5 at No. 3.

“I was letting her run me, letting her call the shots,” Tebbs said. “I decided to be more aggressive and take more risks, especially with my dropshots, and it paid off.”

The title is the second straight for Greely (14-2).