Agrobacterium uses a single-stranded DNA molecule–T-strand–to transform host plants, but the mechanism of insertion into the host genome is unclear. Here, the authors find that T-strand to double-stranded T-DNA conversion, which precedes integration into the genome, may be initiated by the host DNA repair machinery.