Carlos Beltran's last official act as a Major League player was hoisting the World Series trophy for the first time in his career.

And although the 40-year-old is riding off into the sunset as a champion, the Astros' championship was not a factor in his decision to walk away from the game he loves.

The veteran outfielder, who officially announced his retirement Monday in an essay on The Players' Tribune, told MLB.com he reached the verdict to hang up his spikes sometime over the summer, never wavering from that choice during Houston's memorable run.

"At the beginning of this year, being in Houston while my family was in New York, it was the first time I've been away from my family for months," Beltran said in his first interview since announcing his retirement. "I told [my wife] Jessica I really missed the family and I wanted to be with them, so I was really contemplating retirement after this year. I said, 'Hopefully we can get to the World Series and win the World Series, so I can go home on a happy note.'

"When the family came to Houston for the summer, I told Jessica, 'This will be my last year for sure.' I couldn't be away from my family for such a long time anymore."

Beltran got his storybook ending with the Astros' Game 7 victory over the Dodgers, giving him that long-awaited championship that had eluded him for the better part of two decades.

What now for Beltran? He is looking forward to spending time with his family in New York, where his two daughters attend school, though he knows he wants to manage in the Majors someday.