Horse racing icon American Pharoah is leaving the racing world at the top. The colt took first in his final race at the Breeders' Cup Classic, winning $5 million.

"I'm so proud of my staff," trainer Bob Baffert told ESPN. "There's a lot of pressure training a horse like this and I'm happy for all the fans here, all of America; they love this horse. He did it the right way."

All in all, American Pharoah won nine of his 11 races, and in winning the Kentucky Derby, Preakness Stakes and Belmont Stakes, became the first horse to capture the Triple Crown since 1978. (Video via NBC)

>> Read more trending stories

There's no doubt American Pharoah has helped bring horse racing back into the mainstream after the sport faced declining attendance and drug controversy. It will be interesting to see how the sport fares as the colt hangs up his horsehoes.

According to NBC Sports, he's earned more than $8.6 million for his owner during his career and is now headed to a breeding farm in Kentucky.

This video includes images from Getty Images.