Bacterial restriction endonucleases were used to produce DNA cleavage patterns that could be useful as tools to study the relatedness among Anaplasma marginale isolates. Bovine erythrocytes infected with A. marginale were lysed, washed, and embedded in agarose. The embedded erythrocytes and bacterial pathogens were partially digested by sequential infiltration of the agarose with acetone, lysozyme, sodium dodecyl sulfate, and proteinase K. The unfragmented genomic DNA was left supported and protected in a porous matrix. The DNA was digested in situ in agarose under the following conditions: (i) brief treatment with phenol, (ii) brief washing with distilled water, and (iii) adjustment of restriction enzyme digestion mixture to compensate for the volume of the agarose. The cleaved DNA was electrophoresed horizontally to produce a DNA cleavage pattern. Of 19 restriction enzymes screened, 12 produced distinct DNA bands from the genomes of each of the five A. marginale isolates examined. The DNA cleavage pattern produced from each isolate with a given restriction enzyme was reproducible. However, the DNA cleavage patterns produced from different isolates with a given restriction enzyme were not necessarily identical. This procedure could be modified for general bacterial DNA isolation, in situ agarose digestion, and manipulations. Anaplasma marginale is an obligately intracellular bacterial pathogen of bovine erythrocytes from the order Rickettsiales (11). A. marginale causes anaplasmosis, a significant, worldwide (20), hemolytic disease of cattle. Many isolates of A. marginale exhibit differences in morphology (9), surface antigens (18), protein structure (1), vector specificity (27), and virulence (10). Knowledge of the relatedness among the various isolates of A. marginale has importance in taxonomic, epidemiological, virulence, and vaccine development