What is Harmonic Function?

Harmonic Function is the role a chord plays within a key, such as tonic or dominant.