Placing the eggs in an ice bath stops the cooking process so that the eggs do not overcook after taking them out of the water.