Deepfakes are created using a type of ML algorithm called Generative Adversarial Networks (GANs). GANs consist of two neural networks that work together to generate synthetic data: