Ivory soap has plenty of microscopic air bubbles, hence its ability to float. The bubbles expand when exposed to strong electromagnetic waves inside the microwave oven and turn the bar of soap into a squishy substance.