TAMPA, Fla. — The Boston Bruins tied the game with 1:06 left in regulation, but the Tampa Bay Lightning won in a shootout, getting their 50th win to finish the season with a 3-2 win Saturday at Amalie Arena.

Lightning goalie Ben Bishop, a former University of Maine star, stopped all three shots in overtime and 36 overall, and defenseman Victor Hedman scored on Tampa Bay’s second shootout shot.

Just seconds after Boston pulled its goalie with 1:25 left, left winger Brad Marchand scored his 24th goal of the season to tie the game at 2-2 with 1:06 left in regulation.

The teams played a scoreless five-minute overtime, with Hedman just missing a goal in the final five seconds.

The Lightning missed out on an Atlantic Division title when the Montreal Canadiens went to overtime in their final game, and Boston was eliminated when Pittsburgh won to clinch the final playoff berth in the Eastern Conference.

Tampa Bay (50-24-8) has home-ice advantage in the first round of the playoffs and will face the Detroit Red Wings, who won Saturday to jump ahead of Ottawa for the third seed in the Atlantic.

Boston (41-27-14) was eliminated from the Eastern Conference’s last wild card midway through the third period when Pittsburgh won to clinch the final playoff spot. Minutes later, Tampa Bay locked up the second seed in the East when Montreal went to overtime, scoring the point it needed to clinch the Atlantic Division title.

The teams played to a 1-1 tie after two periods, with both goals coming in a span of 52 seconds in the second period.

Lightning rookie center Jonathan Marchessault, called up from the AHL’s Syracuse Crunch before the game, got his first NHL goal with 14:52 left in the second. Marchessault had played just three previous NHL games, including one with Tampa Bay in October, and had led the Crunch in scoring this season.

The excitement of Marchessault’s goal was short-lived, as Boston left wing Loui Eriksson scored his 22nd goal on a rebound.

The teams continued their trend of physical hockey this season. In the first period, Bruins defenseman Adam McQuaid went high on Lightning center Vladislav Namestnikov, knocking him out of the game and drawing a two-minute penalty for an illegal check to the head. It was the Lightning’s only power play in the first two periods.

Tampa Bay took the lead with 14:49 left in the third, getting a goal from rookie defenseman Nikita Nesterov, his third of the season. Nesterov scored on a long shot with assists from defenseman Matthew Carle and Marchessault.