When two ice cubes come into contact, a thin film of water forms between them. Since the film cannot draw heat from the rest of the liquid, the region between the cubes freezes, connecting them. The water molecules from one cube bond with those from another by intermolecular hydrogen bonding.