This paper describes self-assembly of millimeter-sized, magnetized disks floating on a liquid-air interface, and rotating under the influence of a rotating external magnetic field. Spinning of the disks results in hydrodynamic repulsion between them, while the rotating magnetic field produces an average confining potential acting on all disks. The interplay between hydrodynamic and magnetic int...