It's a gerund. 'Riding' can also be used as a present participle. Not as an infinitive.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Anonymous I like riding a horse. is "riding" gerund or infinitive here?This is the infinitive: