Ross County manager Derek Adams said he was "very proud" of what his players had achieved during their 40-match unbeaten run, following their home defeat by St Johnstone at Global Energy Stadium.
Despite playing against 10 men for an hour and dominating most of the match, County lost out to a battling Saints' side who never threw the towel in.
"I have told the lads to be very proud of what they have achieved. It was our best performance since coming into the SPL," Adams said.
"We've lost two poor goals. The first was a long-range strike and the second was poor defensively.
"But other than that I didn't think we deserved to lose the game."
Liam Craig gave Saints the lead against the run of play on the half hour mark and the Perth side went a player down a couple of minutes later when Rowan Vine was sent off for an off the ball incident with Richard Brittain.
County piled on the pressure in the second half and Sam Morrow hit a deserved equaliser in the 68th minute. But with County pushing for a winner Saints grabbed a vital second in the 85th minute when Frazer Wright headed home following a corner.
Saints manager Steve Lomas said: "The sending off was a shocker. The referee is honest, he sees what he sees but I hope he will have a look at it because I think it is a poor decision."
He added: "We had a few hairy moments, but we also had a chance which might have been over the line and that would have put the game out of sight at 2-0.
"The character of the team can never be called into question but I wouldn't like it to be so difficult. I'll not make my 40th birthday at this rate. It was a great victory."
- Derek Adams