Retraction of the type IV pilus (Tfp) mediates DNA uptake, motility, and social and infection behavior in a wide variety of prokaryotes. Here, TRIM39 is linked to infection.