Cooper May scored a hat trick to lead sixth-seeded Yarmouth to a 4-1 upset over third-ranked Cape Elizabeth in the boys’ hockey Class B South quarterfinals Monday at Troubh Ice Arena.

Yarmouth improves to 8-10-1 and advances to play No. 2 York in the regional semifinals Friday at Androscoggin Bank Colisee in Lewiston.

Yarmouth led 1-0 in the second period on a goal by Dom Morrill before May started his hat trick. Chris Romona made a hustle play on the forecheck, creating a turnover and dishing the puck to Bennett Travers, who found May in front of the net for a goal to give Yarmouth a 2-0 lead with 5:21 left in the period.

“(May) is a talent. When you got a big, strong body like that and you can skate the way he does, you add the will to compete there (and) that’s a tough force to stop,” said Yarmouth Coach David St. Pierre. “His will is stronger than anybody on the team’s and he showed it tonight.”

May made it 3-0 with 4:35 left in the third period and finished his hat trick with an empty-net goal in the final minute of play.

“My linemates made it really easy for me tonight. I had two great passes from Bennett out front but to be honest, I’m just psyched that we won,” said May.

The second period was chippy and became more so after Yarmouth made it 2-0. There were several scrums in front of the net that led to pushing and shoving. Cape Elizabeth went on a power play with 2:32 left when Yarmouth’s Caleb Morrison drew a matching roughing penalty with Cape’s Jack Roy-Becker and a 10-mintue misconduct for throwing Roy-Becker down.

“(The) keys tonight were just physicality and intensity level,” said May. “Tonight, as a team, we played a full 45 (minutes) and that’s the first time all year we’ve done that.”

Yarmouth didn’t convert on the power play, but killed off four Cape Elizabeth power plays.

Dan Latham stopped 34 shots to earn the win for the Clippers.

“I was just trying to make the first save and then my defense would really help me out, kick out my rebounds and make sure we got the puck out of the zone,” said Latham. “We got up on them early and that really helped.”

“That was a game that if it was our night and we’re getting the bounces, we’re scoring nine goals,” said Cape Elizabeth Coach Matt Buotte. “I just have to say that I tip my hat to Yarmouth. They’re a class organization.”

Ryan Collins broke up Latham’s shut out with 1:31 left in the game.

“(Latham) just gives us everything he’s got and he made some amazing saves tonight,” said St. Pierre.

Cape Elizabeth won both regular-season meetings: a 4-3 overtime win at home on Feb. 2 and a 3-2 win at Yarmouth on Feb. 21 in the Clippers’ regular-season finale.

“We had some tough losses to (Cape Elizabeth) and it feels really good to put a full 45 minutes together and come out on top,” said May.

The Clippers had lost seven of their last eight games heading into the postseason.

“We refocused on a theme and our team is about family, about coming together and working for each other,” said St. Pierre.