An activation function is a mathematical operation inside a neural network that decides how strongly each artificial neuron responds to its inputs, introducing the non-linearity that lets networks learn complex patterns. Without it, a deep network would behave like simple linear math and could never distinguish, say, photos of authentic zellige tiles from imitations. Common examples include ReLU, sigmoid, and softmax. Think of it as a dimmer switch controlling how much signal each neuron passes forward.