The Savitzky-Golay filter is a digital filter used to smooth a set of data points while preserving the shape and features of the signal, such as peak height and width. It achieves this by fitting successive sub-sets of adjacent data points with a low-degree polynomial via the method of least squares.