The gastrointestinal immune system plays a pivotal role in the host relationship with food antigens, the homeostatic microbiome and enteric pathogens. Here, we describe how to collect and process liver and intestinal samples to efficiently isolate and analyse resident immune cells. Furthermore, we describe a step-by-step methodology showing how to high-dimensionally immunophenotype resident leucocytes using cytometry by time-of-flight, providing a well-characterized antibody platform that allows the identification of every leucocyte subset simultaneously. This protocol also includes instructions to purify and cultivate primary murine hepatocytes, a powerful tool to assess basic cell biology and toxicology assays. Gut and liver samples from the same mouse can be collected, processed and stained in less than 6 hr. This protocol enables the recovery of several populations of purified and viable immune cells from solid and fibrous organs, preventing unwanted loss of adherent cells during isolation.