NEW YORK - Union Rags picked up right where I'll Have Another left off, coming from behind to catch a Bob Baffert-trained horse at the finish in a Triple Crown race.

In Saturday's Belmont Stakes, it was another photo finish decided by a neck. Just like the Preakness.

The 3-year-old bay colt barreled through a slim opening on the rail to edge Paynter, dealing Baffert, jockey Mike Smith and owner Ahmed Zayat a third loss in this year's Triple Crown series.

''We needed every bit of the mile and a half,'' winning trainer Michael Matz said.

I'll Have Another won the Kentucky Derby and Preakness with stirring stretch drives over Baffert's Bodemeister. But the champion stunned the racing world Friday when he was scratched from the Belmont and retired due to a tendon injury, relinquishing a shot at the first Triple Crown sweep since 1978 and only the 12th ever.

His absence opened up the race for Union Rags, who finished a troubled seventh in the Derby after a bumpy start.

Union Rags skipped the Preakness and, because of the Derby problems, switched jockeys for the Belmont - from Julien Leparoux to John Velazquez, who picked up his second Belmont victory; he won in 2007 with filly Rags to Riches.

''I have to give it to the horse. He did it all for me. He just worked so unbelievable and I was just hoping he could put that work into today's race and he did,'' said Velazquez, who will enter racing's Hall of Fame in August. ''I was very proud of him.'''

A crowd of 85,811 cheered as Paynter and Union Rags furiously battled down the stretch, with Union Rags barely catching the front-runner in the second straight photo finish to decide a Triple Crown race this year.

''Is there a Triple Crown for seconds?'' Baffert said. ''I really felt like I was going to win the Belmont. It was snatched away again.''

Zayat was just as bummed, calling it ''a heartbreaking defeat.''

''He ran his guts out,'' he said, referring to Paynter, who was making just his fourth career start. ''I'm very disappointed we opened the rail for (Union Rags).''

Union Rags, the 5-2 second choice, ran the 1 miles in 2:30.42. The colt owned by Phyllis Wyeth returned $7.50, $4.20 and $3.40. Paynter, who sat out the Derby and Preakness, paid $5.10 and $3.90. Atigun was another 1 3/4 lengths back in third and paid $10.60 to show. He also skipped the first two legs of the Triple Crown.

Street Life was fourth, followed by Five Sixteen, Unstoppable U, Dullahan, My Adonis, Ravelo's Boy and Optimizer. Guyana Star Dweej trailed badly and was eased in the stretch by jockey Kent Desormeaux.

Dullahan was the slight favorite by virtue of the more than $200,000 bet on him to win.

Before the race, I'll Have Another, with jockey Mario Gutierrez aboard, walked into the winner's circle for a tribute to the newly retired champion. Trainer Doug O'Neill removed the chestnut colt's saddle for the last time as his barn staff hugged each other and the crowd cheered in a poignant salute.

''I wish I can be unsaddling him in the winner's circle after a win,'' O'Neill said. ''He was a once in a lifetime, heroic horse.''