Some of these barriers also have active immune functions: Outer, keratinized epidermis: Keratinocytes in the skin secrete antimicrobial peptides (defensins), and sebaceous and sweat glands secrete microbe-inhibiting substances (eg, lactic acid, fatty acids).