Fact 1: Antigens are molecules that the immune system recognizes as foreign to the body. 
Fact 2: Antibodies are produced to fight antigens.
When the immune system recognizes a foreign substance, antibodies are produced.