This image illustrates the principals of a technique called "laser-induced breakdown spectroscopy," which the Chemistry and Camera (ChemCam) instrument will use on Mars.
+
Image Credit: NASA/JPL-Caltech