Trilobites were ancient marine arthropods that lived from the Cambrian to Devonian periods. They were filter feeders that strained small food particles from water and sediment. Using antennae to sense their surroundings and mandibles to crush food, they lived on the ocean floor and consumed algae, plankton, small animals, and sediment. They played an important role in nutrient recycling and sedimentary rock formation.