Milwaukee Brewers pitcher Jordan Zimmermann retired Tuesday in his 13th season in the majors, ending a career in which he threw the first no-hitter in Washington Nationals' history and earned two All-Star selections.

Zimmermann posted a career record of 95-91 with a 4.07 ERA. He was an NL All-Star in 2013 and '14 while with the Nationals.

The 34-year-old right-hander from Auburndale, Wisconsin, made two relief appearances for his home-state team this season and had a 0-0 record with a 7.94 ERA.

FILE - Then-Washington Nationals starting pitcher Jordan Zimmermann throws to an Atlanta Braves batter in the first inning of a baseball game in Atlanta, in this Wednesday, May 1, 2013, file photo. Milwaukee Brewers pitcher Jordan Zimmermann has retired, ending a career in which he earned two All-Star Game selections and threw the first no-hitter in Washington Nationals history. The Brewers announced Zimmermann’s retirement Tuesday, May 11, 2021.(AP PhotoJohn Bazemore, File)

FILE - Then-Washington Nationals starting pitcher Jordan Zimmermann throws to an Atlanta Braves batter in the first inning of a baseball game in Atlanta, in this Wednesday, May 1, 2013, file photo. Milwaukee Brewers pitcher Jordan Zimmermann has retired, ending a career in which he earned two All-Star Game selections and threw the first no-hitter in Washington Nationals history. The Brewers announced Zimmermann’s retirement Tuesday, May 11, 2021.(AP PhotoJohn Bazemore, File)

“I have had the joy of playing the game that I love for the past 15 years,” Zimmermann said in a statement released by the Brewers. “I will forever be thankful to the Washington Nationals and Detroit Tigers for allowing me to live out this dream. It has been particularly special to be able to end it all playing for my hometown team, the Milwaukee Brewers.

“Thank you to all of my friends, teammates and family members who have been by my side throughout this incredible journey. I will miss the game greatly, but I’m ready for the new phase of my life.”

Zimmermann initially planned to retire a little earlier.

FILE - Washington Nationals starting pitcher Jordan Zimmermann is doused by his teammates after a baseball game against the Miami Marlins at Nationals Park in Washington, in this Sunday, Sept. 28, 2014, file photo. Zimmermann pitched a no-hitter, and the Nationals won 1-0. Milwaukee Brewers pitcher Jordan Zimmermann has retired, ending a career in which he earned two All-Star Game selections and threw the first no-hitter in Washington Nationals history. The Brewers announced Zimmermann’s retirement Tuesday, May 11, 2021. (AP PhotoAlex Brandon, File)

FILE - Washington Nationals starting pitcher Jordan Zimmermann is doused by his teammates after a baseball game against the Miami Marlins at Nationals Park in Washington, in this Sunday, Sept. 28, 2014, file photo. Zimmermann pitched a no-hitter, and the Nationals won 1-0. Milwaukee Brewers pitcher Jordan Zimmermann has retired, ending a career in which he earned two All-Star Game selections and threw the first no-hitter in Washington Nationals history. The Brewers announced Zimmermann’s retirement Tuesday, May 11, 2021. (AP PhotoAlex Brandon, File)

After signing a minor league deal with the Brewers this year and failing to make the team’s initial major league roster, Zimmermann decided at the end of April to retire. He changed his mind a couple of hours later when the Brewers called to promote him to the big leagues after a flurry of injuries hit their pitching staff.

“I think I was retired for about two hours,” Zimmermann said.

In his first outing with the Brewers, Zimmermann gave up five runs over 3 2/3 innings of relief in a 16-4 loss to the Los Angeles Dodgers. He fared much better in what ended up being his final major league outing, working two shutout innings Friday in a 6-1 loss to the Miami Marlins.

Zimmermann’s greatest success came with Washington, where his rise coincided with the Nationals’ emergence from perennial last-place team to regular playoff participant.

The Nationals were producing their second straight season of 100-plus losses when Zimmermann broke into the majors in 2009. He was a key part of Washington’s rotation when the Nationals won NL East titles in 2012 and 2014.

He went 19-9 with a 3.25 ERA and finished seventh in the NL Cy Young Award voting in 2013. He finished fifth in the Cy Young Award balloting the following season after going 14-5 with a 2.66 ERA. He threw a no-hitter in a 1-0 victory over the Marlins on Sept. 28, 2014, the last day of the regular season — a gem that was preserved by a diving catch by outfielder Steven Souza Jr. for the final out.

Zimmermann signed a five-year, $110 million contract with the Detroit Tigers after the 2015 season but couldn’t come close to matching the success he produced in Washington.

After going 70-50 with a 3.32 ERA in seven years with the Nationals, Zimmermann was 25-41 with a 5.63 ERA in five years with Detroit. He went 1-13 with a 6.94 ERA in 2019 and pitched in only three games in 2020 due to a forearm injury.

Finishing his career in Milwaukee this season enabled the 2007 second-round draft pick from Division III school Wisconsin-Stevens Point to become the 11th Wisconsin native to play for the Brewers.

More AP baseball: https://apnews.com/hub/MLB and https://twitter.com/AP_Sports