Barnsley moved up to fourth in League One after a home win over South Yorkshire rivals Rotherham, who are now winless against the Tykes since 1982.
Jon Russell opened the scoring before Stephen Humphrys came off the bench to double the lead late on.
Joe Rafferty struck a fierce effort goalwards inside three minutes for the Millers, but an onrush of Barnsley defenders were able to block.
The hosts took the lead after 32 minutes through Russell.
After Cameron Dawson pulled off a spectacular save to deny his headed effort, he pounced on the loose ball and made no mistake to give his side the advantage.
It looked as though Rotherham were going to level with 18 minutes to play when Jack Holmes was found at the back post, but Barnsley goalkeeper Ben Killip recovered well to keep a close-range effort out.
Humphrys added a second for the Tykes with four minutes remaining when he found himself behind the last line of Rotherham defence and smashed into the bottom right corner from outside the box.
Report supplied by PA Media.