Abstract: A method for detecting or removing a substance in a medium is presented. Magnetic material, particularly magnetic bacteria or magnetic particles contained therein, are treated to render them receptive to binding or attachment to the substance sought to be detected or removed. Following binding or attachment to the treated magnetic material, the medium is subjected to a magnetic field, which results in removal of the magnetic material and the substance bound or attached thereto.