GALT functions by sampling antigens and toxins present in the gut environment. It contains specialized cells known as M cells that facilitate the transport of antigens from the gut lumen to immune cells. This process initiates an immune response to neutralize or eliminate toxins and pathogens. GALT is composed of structures such as Peyer's patches, which are aggregates of lymphoid tissue that work to detect and respond to harmful substances.