The incorporation of an affinity ligand within a polyacrylamide gel provides a general means of manipulating the selectivity of capillary gel electrophoresis separations. As an example of this approach, high resolution of DNA restriction fragments by capillary gel affinity electrophoresis has been achieved by adding a soluble intercalating agent, ethidium bromide, to the gel-buffer system. A migration model has been developed that can be used for selectivity optimization. Various parameters, such as ligand concentration and applied electric field, have been examined in terms of their influence on retention and selectivity of different-size DNA molecules. From this study, high-resolution separations have been developed with efficiencies as high as 10(7) theoretical plates per meter.