How does directx work with unreal engine?

I am new to this and was wondering how directx works with unreal and how to use it.