Cardiff Blues (12) 38
- Tries: Cuthbert 3, L Williams, Hamilton, Navidi
- Cons: Blair 4
Edinbrugh (3) 13
- Tries: Leonard
- Cons: Godman
- Pens: Godman
- Drop-goal: Godman
Alex Cuthbert scored a hat-trick to help send Wales legend Martyn into retirement a winner in his final home match at Cardiff City Stadium.
Edinburgh arrived with a weakened team as they prepared for their Heineken Cup semi-final against Ulster next weekend.
The Blues profited as Lloyd Williams, Luke Hamilton and replacement back-rower Josh Navidi also went over.
Harry Leonard scored the visitors' try and Phil Godman kicked eight points.
Cardiff Blues supporters bade farewell to a host of players in their penultimate match of the season.
Martyn Williams, Gethin Jenkins, John Yapp, Dan Parks, Richie Res and Ben Blair heading a list of 12 players moving on this summer.
Cuthbert could himself be among the players leaving the Blues, Wales' wing find of the season having been linked with French Top 14 clubs Racing Metro and Toulon.
If he leaves, Cuthbert will have progressed from being a Blues development player to being among the hottest properties in the game after starring in Wales' 2012 Grand Slam.
His Blues performances have been inconsistent throughout the season, but he showed his eye for the line in a confident manner against Edinburgh.
Godman kicked the game's first points with a third-minute penalty.
It took the Blues most of the opening quarter to make their mark.
Blair's break set up the platform for scrum-half Lloyd Williams to go over as namesake Martyn lurked for the scoring pass, Blair converting.
New Zealander Blair missed a penalty before Cuthbert went over for his first try to give the hosts a 12-3 half-time lead.
Godman dropped a goal soon after the break, but the visitors were down to 14 men while centre John Houston was in the sin-bin for a high tackle on left wing Tom James.
In Houston's absence Cuthbert went over in the 50th and 54th minutes as his power told on the visiting defence.
In between 20-year-old number eight Hamilton received his reward for a solid display by making the line.
Replacement fly-half Leonard briefly halted the one-way traffic as Edinburgh hit back.
But after 99-cap Wales flanker received the crowd's applause on his exit, replacement Navidi had the final word for the Blues.
B Blair; A Cuthbert, C Laulala, D Hewitt, T James; C Sweeney, L Williams; L Hamilton, M Williams, M Molitika, J Down, B Davies, S Andrews, M Breeze, G Jenkins.
G Evans for Hewitt (60), D Parks for Sweeney (50), R Rees for L Williams (50), J Yapp for G Jenkins (60), K Dacey for Breeze (63), S Hobbs for Andrews (67), M Cook for M Williams (70), J Navidi for Hamilton (56).
C Paterson, S Visser, J King, J Houston, J Thompson, P Godman, A Black, K Traynor, A Kelly, J Gilding, R McAlpine, S Turnbull, A MacDonald, S Dewar, R Grant (capt).
J Farndale for Paterson (55), H Leonard for Godman (56), R Hislop for Traynor (56), A Walker for Kelly (56), L Niven for Gilding (55), M Douglas for STurnbull (67), H Watson for Dewar (60).
Not Used: Leck.
A Walker, R Hislop, L Niven, M Douglas, H Watson, C Leck, H Leonard, D Fife.
Dudley Phillips (IRFU)
James Jones, Rhys Thomas (both WRU)
John Charles (WRU)
Paul Adams (WRU)