Tumor necrosis factor (TNF) plays a pivotal role in the early control of Mycobacterium tuberculosis and M. avium infections by a host. It was previously shown that both phagocyte-derived and T-cell-derived TNF productions are critical for protective immunity against M. tuberculosis, but the role of TNF produced by B-cells remained unclear. By comparing mice with B-cell-specific TNF deletion to littermate control mice, here we show that TNF production by B-lymphocytes is essential for the formation of infection-specific aggregates of B-cells in the lung. It is likely that these compact foci represent a pathogenic feature of inflammatory response rather than an element of protective immunity, since the capacity to form aggregates has no influence on the severity of M. tuberculosis- and M. avium-triggered diseases.