Complex sentence: He must ensure that she is not drawn into a scandal, ruining her prospects of marriage, a role Heyer often gives to her heroes.
Split into simpler sentences: He must ensure that she is not drawn into a scandal, ruining her prospects of marriage. This is a role Heyer often gives to her heroes.