Simon Kerrigan and Glen Chapple shared nine wickets between them as Lancashire beat Glamorgan by 14 runs inside three days in a Second Division thriller at Colwyn Bay.
The Welsh county had looked destined to win having dominated the first two days and then being left 154 to win on an easy-paced pitch.
That was after Simon Katich (65) and Kyle Hogg (47) had given Lancashire some hope. The visitors had resumed the third morning on 104-4, still 15 behind but went on to make a commendable 272 all out.
That batting effort was then backed up by some fine bowling from Kerrigan (5-32) and skipper Chapple (4-64) which saw Glamorgan crumble from 94-2 to 139 all out in the space of 19 overs, after opener Will Bragg had put his side in a good position with 61 off 66 balls.
The early damage was done by Chapple who had Marcus North caught behind, bowled Bragg and trapped Jim Allenby leg before in the space of four overs.
Kerrigan chipped in with the key wicket of Murray Goodwin before Chapple bowled home skipper Mark Wallace.
That broke the back of Glamorgan's challenge as Kerrigan, who claimed match figures of 9-80, took the last three wickets to fall in as many overs.
With 15 required to win Michael Hogan was last man out attempting to clear the rope but was well caught by Ashwell Prince on the boundary off Kerrigan.
Lancashire took 19 points from the contest to Glamorgan's four.