SuperCam, which is mounted atop Mastcam-Z, uses a laser to vaporize rock so it can remotely analyze the resulting plasma.
NASA/JPL-Caltech