Milwaukee Brewers' Jesus Aguilar (24) congratulates Eric Thames (7) after Thames scored on a single by Christian Yelich during the third inning of a baseball game against the Miami Marlins, Wednesday, July 11, 2018, in Miami. (AP Photo/Wilfredo Lee)

Milwaukee Brewers' Jesus Aguilar hits a double, scoring Eric Thames during the first inning of the teams baseball game against the Miami Marlins, Wednesday, July 11, 2018, in Miami. (AP Photo/Wilfredo Lee)

Milwaukee Brewers' Jesus Aguilar celebrates after getting a base hit during the fourth inning of the team's baseball game against the Miami Marlins, Wednesday, July 11, 2018, in Miami. (AP Photo/Wilfredo Lee)

Seattle Mariners' Dee Gordon wears a "Send Segura" t-shirt, as part of a team campaign to have fans vote for Jean Segura to the All-Star game, during warmups before a baseball game against the Los Angeles Angels in Anaheim, Calif., Tuesday, July 10, 2018. (AP Photo/Alex Gallardo)

Milwaukee Brewers first baseman Jesus Aguilar and Seattle Mariners shortstop Jean Segura won the final two roster spots for next week's All-Star Game in Washington.

Major League Baseball released the results of online balloting for the last slot in each league Wednesday night, with Aguilar drawing 20.2 million votes to secure his first All-Star selection. His total was the second-highest in the history of the All-Star Final Vote, trailing only Justin Turner's 20.8 million votes last year.

The 28-year-old Venezuelan was tied for the National League lead with 23 home runs and becomes the fourth Milwaukee player headed to the game.

"The campaign was unbelievable — the people in Wisconsin and around the world really supported me," Aguilar said. "It's a great thing."

Brewers outfielders Lorenzo Cain and Christian Yelich had already been chosen, along with reliever Josh Hader.

Aguilar has 67 RBIs, including 12 in his past seven games, and is batting .307.

"I'm swinging really good right now," he said.

Segura snagged the last American League spot with 13.6 million votes. He was followed by Boston Red Sox outfielder Andrew Benintendi, New York Yankees slugger Giancarlo Stanton, Minnesota Twins outfielder Eddie Rosario and Los Angeles Angels shortstop Andrelton Simmons.

The 28-year-old Seattle shortstop was batting .329 and ranked second in the majors with 116 hits. He will join Mariners teammates Nelson Cruz, Edwin Diaz and Mitch Haniger at the All-Star Game. Segura, who made the NL All-Star squad in 2013 with Milwaukee, is the first Seattle player to win the fan voting for the final spot.

"It was unbelievable," Segura said. "I can't believe all those people around the world, the fans, the marketing, the organization, the people in Seattle, my teammates, even Felix (Hernandez) yesterday going around the city trying to get some votes for me. It just feels amazing. It feels special. You come from another country and you see how the people support you around the world, it makes it even more special."

San Francisco Giants first baseman Brandon Belt finished second in the NL balloting, followed by Max Muncy of the Los Angeles Dodgers, Trea Turner of the Washington Nationals and Matt Carpenter of the St. Louis Cardinals.