The course introduces the student to the development of strategies based on artificial intelligence for the defense of computer systems and networks against malicious attacks that seek to control them or to gain access to the information residing or circulating in them. Students will be trained in the prevention, detection, analysis and elimination of threats in a continuously evolving context. Typical use cases of artificial intelligence in cybersecurity scenarios will be reviewed.