Seamers Jack Brooks and Luke Evans took three wickets each as Northamptonshire claimed a 94-run win over Gloucestershire with a day to spare at Bristol.
Resuming on 85-2 in pursuit of a victory target of 344, the home side's middle-order capitulated for the second time in the match.
Evans (3-53), in his first game of a month-long loan from Durham, accounted for Alex Gidman (21), Chris Taylor (31) and Gemaal Hussain (4) during an impressive spell.
Gloucestershire were on the brink of defeat at 197-9 before last-wicket duo Steve Snell (52) and Steve Kirby (22no) put on 59, the highest partnership of the innings, either side of lunch.
But Brooks (3-55) duly finished off matters in the 11th over of the afternoon session by trapping Snell lbw.
Tail-ender Jack Brooks hit a first half-century in Championship cricket to put Northamptonshire in a strong position on the second day at Bristol.
Brooks (53) was joined by Paul Harrison (44) in a ninth-wicket stand of 82, as Northamptonshire were eventually bowled out for 243, leaving Gloucestershire a daunting 344 for victory on a pitch still offering plenty of assistance to the seamers.
Northamptonshire began on 34 for three, but Gemaal Hussain claimed four for 62 and match figures of nine for 98 on only his second Championship appearance.
Harrison's 54-ball innings featured four fours and a six. By the time he was bowled by James Franklin the lead was beyond 300 and Brooks went on to reach his fifty off 85 balls, with six fours.
Gloucestershire soon lost opener Jonathan Batty, caught behind for six, but Championship debutant Chris Dent (23) helped Abdul-Kadeer Ali add 44 for the second wicket before being caught at short-leg off Boje.
The home side closed on 85 for two and will need to bat a lot better than in their first innings to make the 259 still required.
An amazing first day's play at Bristol saw 23 wickets fall as Northamptonshire took the upper hand amidst the carnage of their match against Gloucestershire.
What could be a minefield of a track saw Rob White make 95 but still Northants could only muster 186 as Gemaal Hussain took 5-36 for the hosts.
With Gloucestershire looking in control, they then fared even worse with only three players reaching double figures and Hamish Marshall's unbeaten 28 the top score as they were skittled out for just 86.
David Lucas took four wickets and Andrew Hall three as Northants took an unbelievable lead of 100 into the second innings, but the wickets had not stopped falling, as they then slumped to 34-3 in the remaining 14 overs of the day.
Vishal Tripathi made 19 while Stephen Peters was out for one and Mal Loye a duck as the visitors closed with a lead of 134 and on course for what should be victory, but after day one anything is possible.