A gerund is a verb with its -ing ending which acts like a noun in that it functions in a sentence (together with any of its modifiers and complements) like a subject, direct object, or object of a preposition, etc. (other than -ing words that denote concrete objects like building).