Klebsiella pneumoniae plays a significant role in nosocomial infections and spreading antibiotic resistance, and therefore forms a major threat to public health. In this study, we investigated the role of the wastewater pathway in the spread of pathogenic bacteria and more specifically, in the spread of antibiotic resistant Klebsiella pneumoniae subspecies. Whole-genome sequencing was performed of 185 K. pneumoniae isolates collected from hospital, nursing home, and community wastewater, the receiving wastewater treatment plant (WWTP), and clinical isolates from the investigated hospital. K. pneumoniae isolates from different sources were not genetically related, except for WWTP influent (46.5%) and effluent (62.5%), revealing survival of bacteria from wastewater treatment. The content of antibiotic resistance (ARGs), virulence, and plasmid replicon genes differed between K. pneumoniae subspecies and their origin. While chromosomal bla genes were specific for each K. pneumoniae subspecies, bla genes predicted in plasmid contigs were found in several K. pneumoniae subspecies, implying possible gene transfer between subspecies. Transferable ARGs were most abundant in patients and hospital isolates (70%), but the average number of plasmid replicon genes per isolate was similar across all sources, showing plasmid content being more relevant than plasmid quantity. Most patient (90%) and hospital wastewater (34%) isolates were K. pneumoniae subsp. pneumoniae, and the yersiniabactin cluster genes ybt, fyuA, and irp12 were only found in this subspecies, as were the IncFII(pECLA), IncHI2A, and IncHI2 plasmid replicon genes, suggesting the clinical origin of these type of plasmids.