Trilogy meaning

a group of three related novels, plays, films, etc.

a group of three related things.

A trilogy is a set of three works of art that are connected and can be seen either as a single work or as three individual works. Wiki

a series or group of three plays