What is the Definition of Antigen?

The definition of antigen would be anything that might attack the immune system. These can be in a form of a virus or a bacteria that enters the body and takes over. This can also be found in transplanted organs.