A method for capturing a molecule in a sample, comprising mixing the sample with magnetic particles. Each of the particles being coupled with an element capable of binding selectively to the molecule for capture, so as to form at least one complex comprising a magnetic particle. The element and the molecule bound to the element, immobilizing the at least one complex on a support comprising ordered magnetic field microsources.