The Houston Astros finally got Jose Miranda out in the sixth inning on Saturday, which was too late to keep the Twins infielder from making club and major league history.

After being hit by starter Hunter Brown in his first at-bat, Miranda sliced a pair of hits to right-center field to extend his streak of hitting safely to 12 straight at-bats, breaking the club record and tying a major league record last achieved in 1952 as the Twins beat Houston 9-3 in front of an announced crowd of 31,431 at Target Field.Miranda also extended his streak of reaching base safely to 13 plate appearances, another club record — none of which he was entirely familiar with before he stepped into the box. After extending his streak of hitting safely to 10 at-bats, Miranda knew there was more out there for him on Saturday. He just wasn’t sure what.

“I wasn’t sure about all the records, obviously the MLB record and all the other stuff,” he said. “I knew the Twins’ one, but I was just trying to get on base and put a good swing on something.”

He did, and so did his teammates.

Brooks Lee and Byron Buxton each hit two-run home runs, and Willi Castro had three hits with two runs scored as the Twins beat the previously hot Brown to even their three-game series against the Astros heading into Sunday afternoon’s rubber match.

Twins starter Joe Ryan (6-5) scattered five hits and a walk over 5 2/3 innings, allowing three runs for the win, and Jorge Alcala, Cole Sands and Caleb Thielbar combined to throw 3 1/3 scoreless innings as the Twins won for the fifth time in seven games.

Brown (6-6), a hard-throwing right-hander, was 5-0 with a 0.29 ERA and 34 strikeouts in 31 innings over his previous five starts but was tagged for seven runs on 12 hits and a walk in six innings as the Astros lost for just the third time in 16 games.

“He’s a great pitcher, and it definitely showed every once in a while out there,” said Lee, who hit his first major league home run in the third inning, a two-run shot that made it 7-1.

“We got to him, but we’re also an extremely talented group,” Lee said. “I’m sure there will be numerous power arms that we’ll face, but we’re up to the challenge.”

Miranda entered the game having hit safely in his previous 10 plate appearances, all official at-bats, going back to his last at-bat in a 9-2 loss to the Tigers on Wednesday. Batting fourth and playing third base, he came to the plate in the first inning with the chance to become the first major leaguer to hit safely in 11 straight plate appearances, according to Elias Sports Bureau, since the league expanded in 1961.

That quest ended when Miranda was hit in the left hand by Brown. It hit him under the pad on his hand, in the fatty part, and after being seen by a trainer, stayed in the game.

“I thought it was going to be a little more serious,” he said. “It got me … a little bit under my pad, which is weird because I’ve got a big pad. Thankfully, it wasn’t that bad.”

Miranda broke the Twins’ record for consecutive at-bats with a hit by going 4 for 4 in Friday night’s 13-12 loss to the Astros to extend that streak to 10. He extended his record with two outs and runners and first and third in the second by slicing an RBI single to center field.

It was his 11th straight at-bat with a hit, and his 12th consecutive plate appearance reaching base. Three Twins had achieved the latter: Rod Carew (1967), Chuck Knoblauch (1996) and Todd Walker (1998).

In his next at-bat, Miranda sliced another single over the infield, his 12th hit in 12 at-bats, to tie a major league record he now shares with Johnny Kling (1902), Pinky Higgins (1938) and Walt Dropo (1952).

“That was a long time ago,” he said. “I’m out of words. It’s something really special for the game, and myself too. It’s great. It’s great to be a part of history.”

During the streak, Miranda hit seven singles, four doubles and a home run, and raised his batting average from .296 to .328 after Saturday’s game. He finally made his first out since Wednesday when he flied out to center against Brown to end the sixth.

As he took off his batting gloves with first base coach Hank Conger, the crowd stood and erupted into cheers as he acknowledged their applause with a wave.

“It felt great seeing the fans, obviously, showing me [support] with the standing ovation,” he said. “They are proud, obviously, and I’m proud of them being there, too. It was awesome.”