Edinburgh (20) 26
- Tries: Denton, Penalty try
- Cons: Laidlaw 2
- Pens: Laidlaw 4
Scarlets (6) 23
- Tries: Fenby, J Davies
- Cons: Priestland, S Jones
- Pens: Priestland 3
Edinburgh beat Scarlets to avoid an eighth straight RaboDirect Pro12 loss.
Dave Denton crossed for Edinburgh midway through the first half and a penalty try before the break helped establish a 20-6 lead for the hosts.
Scarlets ended the first half and began the second with 13 men due to Matthew Rees and Deacon Manu's sin-binning.
The hosts did not take full advantage and Andy Fenby and Jon Davies ran in tries as Scarlets drew level, but Greig Laidlaw's penalty ensured a home win.
The result dents sixth-place Scarlets' bid to reach the league's end of season play-offs, while Edinburgh remain second-bottom.
Rhys Priestland's early penalty was cancelled out by one from Laidlaw, who then kicked Edinburgh ahead with another penalty.
Edinburgh pressed from a line-out in the Scarlets 22 and Ross Rennie, one of nine Scotland internationals returning from Six Nations duty, was tackled just short of the line.
However, he offloaded to back row colleague Denton, who plunged over near the upright. Laidlaw converted.
A second penalty from Priestland reduced Scarlets' arrears.
Referee Peter Fitzgibbon warned Scarlets after several infringements but it went unheeded as Manu offended at the breakdown and was promptly shown a yellow card.
And Scarlets captain Rees was also sent to the sin bin after being penalised for a deliberate knock-on in front of his own posts.
Edinburgh opted for a scrum from the ensuing penalty and shunted the depleted Scarlets pack backwards, forcing another offence and a penalty try, which Laidlaw converted.
Mike Blair was foiled just short of the line as Edinburgh were frustrated at the start of the second half.
And, once back to their full complement, the Welsh side began to reduce their deficit with Priestland kicking his third penalty.
Fenby then collected a flip pass on the edge of the Edinburgh 22 and raced round the sticks to touch down, Priestland adding a simple conversion.
Laidlaw steered between the sticks after Priestland conceded a penalty, but Scarlets's comeback was re-ignited with Davies' try.
Stephen Jones, who had missed a penalty after replacing Priestland, freed the outside centre to score and Jones converted to level matters.
However, Laidlaw kicked Edinburgh ahead again and the hosts survived a late Scarlets rally with a turnover, then a knock-on, halting the visitors's progress.
T. Brown, Jones, De Luca, Scott, T. Visser, Laidlaw, M. Blair, Jacobsen, Ford, Cross, Gilchrist, Cox, Denton, Rennie, McInally.
Thompson for T. Brown (32), Leck for M. Blair (74), Grant for McInally (66). Not Used: Kelly, Traynor, Gilding, Lozada, Godman.
L. Williams, North, Maule, J. Davies, Fenby, Priestland, G. Davies, R. Jones, M. Rees, Manu, Timani, Day, Turnbull, J. Edwards, Murphy.
Lamont for Maule (43), S. Jones for Priestland (61), John for R. Jones (67), Owens for M. Rees (72), Welch for Day (67). Not Used: P. Edwards, Gilbert, L. Davies.
Manu (37), M. Rees (39).
Peter Fitzgibbon (Ireland).