The sul2 gene encodes sulphonamide resistance (Sul R ) and is commonly found in Escherichia coli from different hosts. We typed E. coli isolates by multilocus sequence typing (MLST) and compared the results to sequence variation of sul2, in order to investigate the relation to host origin of pathogenic and commensal E. coli strains and to investigate whether transfer of sul2 into different genomic lineages has happened multiple times. Sixty-eight E. coli isolated in Denmark and Norway from different hosts and years were MLST typed and sul2 PCR products were sequenced and compared. PFGE was performed in a subset of isolates. All isolates were divided into 45 different sequence types (STs), with clonal complexes CC10, CC23, CC168, CC350 and CC69 being the most frequent. The sul2 gene from the majority of E. coli strains had only two point mutations, at positions 159 and 197, leading to a synonymous and a non-synonymous change, respectively. Five strains had extra single mutations. All poultry, poultry meat, and Danish human blood isolates had the same sul2 ST and some of these strains clustered under the same MLST STs, indicating that they shared habitats. Most PFGE profiles clustered according to source, but some included different sources. Sul R E. coli from different animals, food, human faeces and infections did not cluster according to their origin, suggesting that these habitats share E. coli and sul2 gene types. However, while pig isolates on one occasion clustered with urinary tract infection isolates, poultry isolates seemed more related to isolates from bloodstream infections in humans. Presence of mainly two types of the sul2 gene in both human and animal isolates, irrespective of date and geography, and the presence of both types in the same clonal lineages, suggest horizontal transfer of sul2.