A resistor and a capacitor make the simplest filter. At low frequencies the capacitor barely conducts, so the output follows the input; at high frequencies it shorts the signal to ground, so the output shrinks and lags behind. The crossover is the cutoff frequency, 1/(2πRC).