Homeostatic trafficking of lymphocytes through extralymphoid tissues has been recently observed, and a potential role in immune surveillance and the establishment of peripheral tolerance are considered. However, the mechanisms regulating lymphocyte recirculation through peripheral tissues under noninflammatory conditions are not well understood. Here, we demonstrate that the chemokine receptor CCR7 controls not only lymphocyte trafficking to and within secondary lymphoid organs but also homeostatic migration of T and B lymphocytes through nonlymphoid tissues. Lack of CCR7 results in a massive accumulation of lymphocytes in epithelial tissues. In particular, the gastrointestinal mucosal tissue of CCR7-/- mice is highly permissive for the formation of lymphoid aggregates, which develop into ectopic follicular structures with major topologic characteristics of lymph nodes. Flow cytometry analysis of CD4+ T cells derived from ectopic follicles revealed that CD44hiCD62Llo effector memory T cells predominate in the gastric lymphoid aggregates. In aged mice, lack of CCR7 induced age-dependent histomorphologic changes in the stomach with profound cystic hyperplasia and an increased rate of mucosal proliferation resembling Menetrier disease. Thus, CCR7 regulates the cellular organization of visceral tissue by governing life-long recirculation of naive and memory lymphocytes under homeostatic conditions.