A complement is a word or group of words that completes the action or state of being expressed by the verb. A subject complement typically follows the verb to be or a linking verb (seem, appear, many others).
Another kind of complement is the object complement. In the following sentence, the object complement is underlined:
We elected her mayor.