It is the object.
And in the following sentence, it is the subject.
Reading is enjoyable.
9.4m questions
12.2m answers