Antibodies are produced in response to the presence of non-self antigens being detected by T lymphocytes in the body. This may be caused by infection with a virus or bacteria, or the inhalation of pollen, for example.