Alloa ended Hamilton's unbeaten run at the top of the Scottish Championship with a 1-0 win at Recreation Park.
The league leaders had the better of the early chances, with Alistair Crawford coming close twice within the first 10 minutes.
But the Wasps took the lead a minute before half-time when Alexander Neil deliberately handled inside his own box, leaving referee Stevie O'Reilly no option but to show the midfielder the red card.
Ryan McCord slid home the resulting spot-kick into the bottom right-hand corner.
The 10 men threw all they had at Alloa in the second half but could not manage to create any clear-cut chances, allowing the Wasps to hold on for their third win of the season.