Bacterial type IV secretion systems (T4SSs) play central roles in antibiotic resistance spread and virulence. By cryo-electron tomography (CryoET), we solved the structure of the plasmid pKM101-encoded T4SS in the native context of the bacterial cell envelope.