In the sentence "You did it well". What is the grammatical function of the word "Well"?

In the sentence "You did it well". What is the grammatical function of the word "Well"?

Explanation

In the sentence "You did it well," the word "well" functions as an adverb.

It describes how the action of doing was performed, modifying the verb "did."