Peter MacDonald was the man of the moment again as Dundee clawed themselves to within three points of the top of the Championship.
The veteran frontman scored from two dead-balls situations to extend the Dark Blues unbeaten league run to three games.
His brace, coupled with a rare goal for Gavin Rae and another wonder strike from Ryan Conroy, one to add to his collection, wrapped up victory at the Bet Butler Stadium.
And with Hamilton drawing at Morton, John Brown’s men are now within touching distance of the summit.
It’s an old clich in football but this one really was a game of two halves.
In the opening 45, Dundee looked lethargic, lacking the fluency or speed of movement to trouble Dumbarton.
Credit to the home side, though, a lot of that came down to their resolute discipline and set-up five at the back proving almost impregnable in the first-half.
In fact, it took 13 minutes for the first effort of the game a tame, poorly directed swipe from Declan Gallagher.
Things did get better Conroy should have done better at his hometown club, snatching at an effort palmed away by the keeper, despite having the whole goal to aim at.
Reduced to long balls, the visitors were a shadow of the fluid outfit who swept aside Cowdenbeath and Morton.
And Dundee suffered two scares.
First, Gary Irvine had to be sharp to scoop over his own crossbar when Kyle Letheren came and missed one. Then Mark Gilhaney rattled the upright.
That seemed to spark Bomber’s boys into life Craig Beattie crashed the ball off the upright at the other end, curling a speculative strike off the bar from 30 yards.
After the break, it was a different story.
It took just four minutes for the opener MacDonald’s deflected free-kick wrong-footed the home defence before nestling in the corner.
Things went from bad to worse for the Sons’ when Dundee old boy Colin Nish was harshly dismissed for a second bookable offence.
As the game ticked on, Nicky Riley and Conroy began to influence proceedings.
And it was the latter of the two who netted with 20 minutes remaining Conroy lashing home from 25 yards.
MacDonald made it 3-0 from the spot minutes later before a defensive lapse allowed Garry Fleming a consolation.
But the game was secure two minutes from time. Having put the second on a plate for Conroy, sub Craig Wighton then did the same for Rae.