It works as a noun, and it comes from a verb. We call it a gerund. If I give an example in Polish, you might understand better: śpiewać --> śpiewanie
Beware! Not all [verb]ing forms are gerunds. If it is part of a continuous verb form, or if it works as an adjective, or if it starts a short phrase which gives extra information about something, then it is NOT a gerund, but a present participle.
We make them exactly the same way as gerunds, but the structure of the sentence tells us whether we have a gerund or a participle. You need to look at the complete sentence.