Heating the solution speeds up the reaction, causing lead iodide particles to dissolve, resulting in a transparent solution.