The sigmoid function is a type of activation function used in neural networks to introduce non-linearity. It maps any real-valued input to a value between 0 and 1, making it especially useful for models that output probabilities.