Jim Allenby returned figures of 5-56 as Glamorgan had the better of the opening day of their LV= County Championship Division Two clash with Essex at Swansea.
The all-rounder, assisted by swing, took three wickets in the space of five overs and then helped to mop up the tail with Essex losing their last six wickets for the addition of 66 runs.
Essex were bowled out for 286 with the main contributions coming from openers Tom Westley, 60, and Nick Browne with 73.
In reply Glamorgan finished on 27 for one, 259 behind, after losing Will Bragg two overs from the close when he was caught behind off Monty Panesar for 11. That wicket brought nightwatchman Andrew Salter to the middle to join Jacques Rudolph.
PAnesar is lbw. Essex 286 all out as Allenby takes 5/56
— Glamorgan Cricket (@GlamCricket) August 15, 2014
On a relatively placid Swansea wicket Essex chose to bat first and by lunch had reached a respectable 102 for two.
The mainstay of the early Essex batting was Westley, who celebrated a fresh two-year contract with an impressive half-century which came from 62 balls and included 10 fours.
His partner Browne was rather more circumspect but he had to watch two wickets fall at the other end.
Dean Cosker, the slow left-armer, was introduced into the attack in the 19th over and in his third over made the breakthrough - Westley bowled attempting to sweep to depart for 60 from 79 balls.
That became 91 for two when Cosker struck again to have dangerman Ravi Bopara caught by Allenby at slip for just four.
In the over before lunch Browne, on 31, survived a very confident lbw appeal after he padded up to a ball from Cosker.
WICKET Bragg caught by James Foster from bowling of Monty Panesar for 11 as batsman prods tentatively forward. 23-1 in 9th over. #GlavEss
— Essex Cricket (@EssexCricket) August 15, 2014
It took the introduction of spin from the pavilion end to earn Glamorgan their first bowling point when New Zealander Jesse Ryder was caught behind cutting off Salter's opening over.
From 126 for three Essex enjoyed a useful partnership of 70 between Browne and James Foster before three wickets fell for the addition of only 28 runs either side of tea.
Foster, who on 35 had been lucky not to give a return catch to James Harris, added only four more before the bowler had his revenge as the Essex captain edged a drive behind.
Allenby then struck twice in two overs, firstly ending Browne's three-hour 14 minute innings after the opener had made 73 from 194 balls. He was caught by wicketkeeper Mark Wallace, with the same combination also accounting for Graham Smith cheaply.
Essex's innings came to a rather quick end as Graham Napier miscued Allenby to Michael Hogan at mid-off before the final three batsmen all went leg before, with the wickets of Ryan ten Doeschate and Panesar giving Allenby his five-wicket haul.