Matt Boyd threw a gem for the Tigers, who beat the Twins 2-1 on Tuesday.

Boyd (1-1) went six shutout innings for the Tigers (5-2), allowing a hit and two walks while striking out six. He did not give up a hit in 5 2/3 innings.

James McCann’s 2-run home run — his third in the team’s first seven games — in the bottom of the fifth put the Tigers on the board.

Jason Castro’s RBI single with one out in the top of the ninth against Tigers closer Francisco Rodriguez made it 2-1.

The Twins had two on in the ninth, before Rodriguez closed the door for his third save.

Hector Santiago (1-1) took the loss for the Twins (5-2). He went 6 1/3 innings, giving up two runs on three hits while striking out one and walking one.

The Tigers play the Twins tomorrow at 1:10 in the second of the three-game set. Michael Fulmer (0-0, 0.00 ERA) will get the start for the Tigers, while Kyle Gibson (0-0, 5.40 ERA) will go for the Twins.

Tigers strand 2 in 8th

The Tigers stranded a pair of baserunners in the bottom of the eighth inning, after Nicholas Castellanos singled and Miguel Cabrera walked — both with two outs.

Victor Martinez popped out to end the inning.

Going to the ninth, the Tigers have a 2-0 lead.

Wilson a bit dicey in 8th

Tigers setup man Justin Wilson pitched the eighth inning for the Tigers, getting two quick outs — including Byron Buxton’s third strikeout.

But then Wilson walked Brian Dozier, who took second on a wild pitch that made the count 2-1 on the next batter, Robbie Grossman. Wilson then got Grossman to ground out to first baseman Miguel Cabrera to end the half inning.

Going to the bottom of the eighth, the Tigers have a 2-0 lead.

Tigers strand Mahtook in 7th

The Twins went to their bullpen in the bottom of the seventh inning.

After Mikie Mahtook reached safely on a ground ball misplayed by Twins shortstop Jorge Polanco with one out,…