Warlock

A magic user who gets his or her power by means of a pact with a supernatural entity.

https://www.dndbeyond.com/classes/warlock