The "golden rain" effect is caused by the recrystallization of lead iodide (PbI2) particles when the heated solution cools down.