Horizontal gene transfer allows organisms to rapidly acquire adaptive traits. Although documented instances of horizontal gene transfer from bacteria to eukaryotes remain rare, bacteria represent a rich source of new functions potentially available for co-option. One benefit that genes of bacterial origin could provide to eukaryotes is the capacity to produce antibacterials, which have evolved in prokaryotes as the result of eons of interbacterial competition. The type VI secretion amidase effector (Tae) proteins are potent bacteriocidal enzymes that degrade the cell wall when delivered into competing bacterial cells by the type VI secretion system. Here we show that tae genes have been transferred to eukaryotes on at least six occasions, and that the resulting domesticated amidase effector (dae) genes have been preserved for hundreds of millions of years through purifying selection. We show that the dae genes acquired eukaryotic secretion signals, are expressed within recipient organisms, and encode active antibacterial toxins that possess substrate specificity matching extant Tae proteins of the same lineage. Finally, we show that a dae gene in the deer tick Ixodes scapularis limits proliferation of Borrelia burgdorferi, the aetiologic agent of Lyme disease. Our work demonstrates that a family of horizontally acquired toxins honed to mediate interbacterial antagonism confers previously undescribed antibacterial capacity to eukaryotes. We speculate that the selective pressure imposed by competition between bacteria has produced a reservoir of genes encoding diverse antimicrobial functions that are tailored for co-option by eukaryotic innate immune systems.