How does laser cooling work?

After this video, I saw a video on cooling objects to 177 nanokelvin using a magnetic field the way you blow your tea to cool it faster. That work was done at MIT. Then we get the Bose-Einstein condensate.