It is used in electrochemistry as a reference electrode. Reference electrodes are used to find the electrode potentials (ability to be oxidized and reduced) of other chemical substances. Since it decomposes when light is shined on it, it is used to see how many photons are in a light beam. It was used as medicine in the past, although it was toxic.