Gareth Rees and Michael Powell both struck half-centuries as Glamorgan claimed a draw on the final day of their Division Two fixture against Surrey.
The pair stood firm for nearly two and a half hours in a third-wicket stand of 129 as the Welsh county - following on - reached 198-4 before both sets of players shook hands.
Glamorgan went into the final day looking to knock off the 49 runs required to save the follow-on, but survived just 37 balls as Stuart Meaker (5-86) claimed the final wicket of Dean Cosker.
James Harris was left stranded on 43 to end a last-wicket stand of 38, leaving Glamorgan 31 runs short of the follow-on target of 426.
Forced to bat again, the home side needed 181 to avoid an innings defeat and had to bat 87 overs to secure a draw.
And the home side salvaged a share of the spoils thanks to a battling 89 from opener Rees and a stubborn 65 from Matthew Powell.
Surrey had to make do with nine points to Glamorgan's eight.
Glamorgan produced a team effort to bat throughout day three against Surrey but still face the follow-on.
Replying to the visitors' first-innings score of 575-7 declared, Huw Waters (54), Mark Wallace (55) and Graham Wagg (48) were among those to chip in as Glamorgan recovered from 95-4 at the start of the day to 377-9 at stumps.
The Welsh county remain 198 behind heading into the final day and still need another 49 from last-wicket pair James Harris (32no) and Dean Cosker (9no) to avoid the follow-on.
Surrey paceman Stuart Meaker, who took three wickets on the second evening, added the scalp of Stewart Walters in figures of 4-74.
Tom Maynard returned to haunt Glamorgan as Surrey took control on day two of the Division Two clash in Cardiff.
Maynard made a protracted exit from the Welsh county during the winter following the departure of his father, former England batsman Matthew, from his role as director of cricket after a clash with the committee.
And the 22-year-old showed the Swalec Stadium faithful exactly what they are missing with a maiden first-class century before Surrey declared their first innings at 575-5.
Zander de Bruyn, on 109 overnight, extended his fifth-wicket stand with Maynard to 216 before falling to veteran spinner Robert Croft (1-111) for 172.
Maynard brought up his hundred from 190 deliveries, including 10 fours and a six.
Left-arm spinner Dean Cosker (3-168) eventually dismissed Maynard for 123 and Chris Schofield was agonisingly denied a century of his own, run out for 99, prompting Surrey's declaration.
Glamorgan were reduced to 95-4 in reply with Stuart Meaker, who signed a contract extension earlier in the day, claiming 3-34, all three of his victims being lbw.
Surrey gained the upper hand on the first day of their clash with Glamorgan in Cardiff thanks to an unbeaten century from Zander de Bruyn.
The visitors finished the day on 286-4 in their first innings, with Tom Maynard on 60 not out after sharing an unbroken fifth-wicket stand of 122 with De Bruyn.
Opening pair Gary Wilson (21) and Michael Brown (23) saw out the opening 17 overs of seam but the former fell to slow left-armer Dean Cosker to leave the score on 42-1.
Brown also fell before lunch as he gave an easy catch to Will Bragg at second slip, but Cosker could not hang on to a difficult chance to dismiss De Bruyn in the gully and the South African made Glamorgan pay.
He built a partnership of 82 with Steven Davies before the wicket-keeper was run out on 45 by debutant Stewart Walters, while skipper Rory Hamilton-Brown could only add two before falling to Cosker.
Maynard then came to the crease and helped Surrey past the 200 mark before Glamorgan took the second new ball, but that made no impact as De Bruyn brought up his century in the final session.