An antigen is a substance that can stimulate an immune response in the body. It can be a molecule or a part of a molecule, such as a protein, carbohydrate, or lipid, that is recognized by the immune system as foreign.