The invention relates to an affinity material, comprising a carrier and an affinity protein bonded thereto, and a kit that comprises such an affinity material. The invention further relates to a method for separating and/or enriching prokaryotic DNA and the use of the affinity material to detect pathogenic bacteria or to detect a bacterial contamination.