Part of the immune system that is the first line of defense to any microorganism or foreign substance.