The Viking spacecraft scooped up bits of Martian soil and placed them in a chamber, where they could be analyzed. It was in effect a miniature, automated chemical analysis laboratory. 

Related Content Viking Lander Object