Bacteria possess many types of antiviral immune systems, some of which are present also in eukaryotes. Here, Leão et al. explore the diversity and distribution of antiviral defense systems in archaea and their evolutionary relationships with bacterial and eukaryotic immune systems, supporting that Asgard archaea played important roles in the origin of eukaryotic innate immunity.