The immune system has remarkable capabilities to combat disease with exquisite selectivity. This feature has enabled vaccines that provide protection for decades and, more recently, advances in immunotherapies that can cure some cancers. Greater control over how immune signals are presented, delivered, and processed will help drive even more powerful options that are also safe. Such advances will be underpinned by new tools that probe how immune signals are integrated by immune cells and tissues. Biomaterials are valuable resources to support this goal, offering robust, tunable properties. The growing role of biomaterials as tools to dissect immune function in fundamental and translational contexts is highlighted. These technologies can serve as tools to understand the immune system across molecular, cellular, and tissue length scales. A common theme is exploiting biomaterial features to rationally direct how specific immune cells or organs encounter a signal. This precision strategy, enabled by distinct material properties, allows isolation of immunological parameters or processes in a way that is challenging with conventional approaches. The utility of these capabilities is demonstrated through examples in vaccines for infectious disease and cancer immunotherapy, as well as settings of immune regulation that include autoimmunity and transplantation.