The function of an operational amplifier is to amplify and manipulate electronic signals. It provides a high gain and high input impedance, making it useful in a variety of applications such as amplifiers, filters, and oscillators. Op-amps can also be used to perform mathematical operations such as addition, subtraction, and differentiation.