Edinburgh bounced back from last week's defeat to Zebre with a 28-17 Guinness PRO12 victory over Ulster at BT Murrayfield.
The hosts were evidently desperate to atone for the previous week's shock defeat and by half-time had established a 21-3 advantage through tries from Villiame Mata and Damien Hoyland, a conversion from Jason Tovey and a penalties from Blair Kinghorn and Duncan Weir (2).
Magnus Bradbury then crossed after the interval with Tovey adding a second conversion.
Ruan Pienaar kicked a first-half penalty for Ulster before converting second-half tries from Aaron Cairns and Jacob Stockdale and adding a penalty.
With two minutes on the clock, Tovey almost sidestepped his way through the Ulster defence and when he was thwarted, Sean Kennedy fed the ball back to Mata, who crashed through two tackles to touch down and Tovey converted.
The hosts continued to dominate and claimed a second try of the evening after nine minutes. Mata was again involved and when he was foiled, Kinghorn was hauled down just short but Hoyland was alert to the opportunity and picked up to plunge over.