Ivory soap has air whipped into it during the manufacturing process, creating tiny holes with minuscule water droplets inside. When microwaves hit the water, it vaporizes and expands it, causing the bar of Ivory soap to expand.