Marcus Fraser came back to haunt Ross County after helping St Mirren to a 2–0 victory in the Scottish Premiership.
The Staggies were reduced to nine men, with Josh Reid getting sent off in the first half and Ross Draper following suit in the second.
Fraser broke the deadlock with 14 minutes left before Kristian Dennis scored his first goal for the club in the 85th minute to seal all three points for Jim Goodwin's men.
It was the hosts who burst into life early in the contest, with Draper testing Jak Alnwick inside the first minute.
The Buddies stopper was needed again in the fifth minute with a good double save to deny County from a corner.
First the ball came off his own defender, forcing him to parry it into the air where Ethan Erhahon headed away from the goal line.
It only went as far as Alex Iacovitti inside the box, though, and the County defender rose highest to force Alnwick into action one more time.
A red card for Reid at the end of the first half brought any momentum County may have built to a screeching halt.
The young full-back had already been booked for a foul on Kyle McAllister in the 16th minute and when he repeated the feat in the 37th, referee Colin Steven took his name for a second time and sent him off.
Things would go from bad to worse for the hosts on the hour mark when Draper followed Reid down the tunnel.
He was shown his first yellow card for a foul on Erhahon, which was immediately succeeded by another for pushing the St Mirren player over as he tried to get back to his feet.
If the first red card saw the Buddies' intensity levels rise, the second did so all the more and Ilkay Durmus forced a good save out of Ross Laidlaw from a free-kick before Joe Shaughnessy volleyed wide from inside the box.
They finally found a breakthrough thanks to former County captain Fraser, whose shot from just inside the box took a deflection on its way past Laidlaw.
Dennis rounded off the scoring with a simple header at the near post, which clipped the inside of the woodwork before going in.