A gerund is a verbal ending in -ing that is used as a noun. They are also called verbal nouns. Because it acts as a noun, a gerund can be used in a sentence as:
a subject of a sentence
Example:
Living as a teenager in another country is challenging.
a subject complement, where the gerund follows the verb to be