Tommy Leigh and Rosaire Longelo sent Accrington Stanley back into the Play-Off places as they ended Wrexham’s 11-game unbeaten streak.
Leigh fired home a penalty on 50 minutes and Longelo struck home in the 73rd minute as Stanley moved back into seventh spot after two league losses.
Wrexham, backed by 2587 fans with a full-house at the Wham Stadium, missed a penalty in the 98th minute and dropped out of the automatic promotion places.
Hills came back into the Reds backline after suspension while Birmingham loan striker Josh Andrews was on the bench following an illness. Shaun Whalley and Joe Pritchard missed out through injury.
There was a penalty appeal at both ends in the early stages with referee Neil Hair waving both away.
A Thomas O’Connor free kick was straight into the arms of Jon McCracken while the Stanley keeper had to tip away top scorer Elliot Lee’s header on 14 minutes.
Stanley started to come more into the game, putting a number of dangerous balls into the box and Leigh fired just wide on 20 minutes.
On 25 minutes Longelo’s ball in found Cody Adedoyin in the six-yard box but he just couldn’t connect properly with it while a long-range effort by Ben Woods was caught by Wrexham goalie Arthur Okonkwo.
Visiting striker Paul Mullin crashed an effort against the crossbar on 38 minutes after being played clean through by Lee, although the Reds were appealing for off-side.
Stanley pressed in the early stages of the second half with Adedoyin dragging an effort wide and a Ben Woods long-range strike deflected off target.
The Reds were awarded a penalty on 50 minutes when Wrexham’s second half substitute Will Boyle was judged to have pulled back Hills in the area from a corner and Leigh fired the spot kick to his left, sending Okonkwo the wrong way. It was his fifth goal of the campaign.
Adedoyin had a strike saved soon after as Stanley pressed.
They made it two on 73 minutes when Jack Nolan’s shot wasn’t held by Okonkwo and Adedoyin was there to pounce and his effort found Longelo was who slid the ball over the line.
Stanley then lost both goalscorers Leigh and Longelo to injury and Wrexham were awarded a penalty in the 98th minute when Hills fouled George Evans in the area.
Mullin's spot kick bounced off the underside of the crossbar and out to safety as the Reds celebrated a 2-0 win.
Stanley: McCracken, Shipley, Rich-Baghuelou, Hills, Lowe, Nolan, Conneely, B Woods, Longelo (Martin), Leigh (Andrews), Adedoyin
Subs: McIntyre, Mellor, Gubbins,Pickles, J Woods
Attendance: 5261 (2587 from Wrexham)