It was never a question that Derek Jeter, the longtime captain of the Yankees and one of the most celebrated players in baseball history, was going to be enshrined in the Baseball Hall of Fame. The intrigue instead centered on whether he would become the second unanimously elected player, following his former teammate and fellow five-time World Series champion Mariano Rivera.

On Tuesday, Jeter fell just short of Rivera’s historic mark from last season.

Jeter was named on all but one of the 397 ballots cast by members of the Baseball Writers’ Association of America — more than enough to clear the 75 percent hurdle for election. His 99.7 percent share of the vote eclipsed the previous second-highest voting mark, 99.3 percent, for outfielder Ken Griffey Jr. in 2016.

Jeter was joined in the Hall’s 2020 class by Larry Walker, the standout slugger who played the majority of his career in Colorado with the Rockies. Walker was in his 10th and final year of eligibility on the ballot and will now be the first Canadian-born position player in the Hall of Fame.

Walker and Jeter, who is now leading a rebuilding effort in Miami as the chief executive officer and part owner of the Marlins, will be inducted into the Hall of Fame on July 26 in Cooperstown, N.Y., along with Marvin Miller, the union leader who revolutionized the sport by helping players gain the right to free agency, and catcher Ted Simmons. The latter was passed over by the writers, but both were elected by a smaller committee last month.