Intravital imaging of the superficial brain tissue in mice represents a powerful tool for the dissection of the cellular and molecular cues underlying inflammatory and infectious central nervous system (CNS) diseases. We present here a step-by-step protocol that will enable a non-specialist to set up a two-photon brain-imaging model. The protocol offers a two-part approach that is specifically optimized for imaging leukocytes but can be easily adapted to answer varied CNS-related biological questions. The protocol enables simultaneous visualization of fluorescently labeled immune cells, the pial microvasculature and extracellular structures such as collagen fibers at high spatial and temporal resolution. Intracranial structures are exposed through a cranial window, and physiologic conditions are maintained during extended imaging sessions via continuous superfusion of the brain surface with artificial cerebrospinal fluid (aCSF). Experiments typically require 1-2 h of preparation, which is followed by variable periods of immune cell tracking. Our methodology converges the experience of two laboratories over the past 10 years in diseased animal models such as cerebral ischemia, lupus, cerebral malaria, and toxoplasmosis. We exemplify the utility of this protocol by tracking leukocytes in transgenic mice in the pial vessels under steady-state conditions.