A microfluidic device is provided, the microfluidic device comprising: a plurality of chambers (3, 4, 5, 6) adapted for performing chemical, biochemical, or physical processes and a flow path (9) connecting the plurality of chambers (3, 4, 5, 6) adapted for accommodating at least one magnetic particle (7) subsequently moving through the plurality of chambers The plurality of chambers (3, 4, 5, 6) are separated by at least one valve-like structure (10) adapted to enable passing-through of the at least one magnetic particle (7) from one of the plurality of chambers to another one of the plurality of chambers. At least one delaying structure (11, 111) adapted to delay movement of the at least one magnetic particle (7) along the flow path is provided