It is like superimposing a face of someone on a video. This is done by machine learning.
Here's an example of Nicolas Cage's face put on different actors:
And here's a deep fake of Obama
And here's a deep fake porn video with Emma Watson:
xnxx.com/video-kal7v62/emma_watson_deep_fake
And here is a (technical) explanation: