The legality of deepfakes varies by jurisdiction. In many places, deepfakes can be illegal if they are used for malicious purposes, such as defamation, fraud, or non-consensual pornography. However, laws regarding deepfakes are still evolving, and their legality can depend on the specific circumstances and local legislation.