Klebsiella pneumoniae is one of the most common causes of clinical and asymptomatic mastitis in dairy cattle, as well as in milk and dairy products that affect milk quality. Mastitis caused by K. pneumoniae is even more serious due to its poor response to antibiotic therapy. The aim of this study was to detect and identify the presence of K. pneumoniae in milk and dairy products produced in Libya. A total of 234 samples were randomly collected from various locations in Libya. Samples were examined for the presence of K. pneumoniae using conventional cultural techniques, including cultivation in violet red bile agar plus 4-methylumbelliferyl-ß-D-glucuronide broth and CHROM agar, followed by polymerase chain reaction identification and partial sequencing of 16S rRNA. Of the 234 samples of milk and dairy products collected, 16 (6.8%) isolates revealed mucoid colonies on agar media that were phenotypically suggested to be K. pneumoniae. Identification of isolates was confirmed using molecular techniques (16S rRNA). Among the examined samples, K. pneumoniae was recovered from camel's milk, raw cow's milk, raw fermented milk, Maasora cheese, Ricotta cheese, soft cheese, full cream milk powder, milk powder infant formula, cereal baby food, and growing-up formula. Antibiotic susceptibility testing was performed on 12 of the 16 K. pneumoniae isolates, and the results showed that K. pneumoniae isolates were resistant to more than eight antibiotics; interestingly, two isolates showed metallo-beta-lactamase (MBL) production. K. pneumoniae is considered a risk to human health because many of these products do not comply with the microbiological criteria of international and/or Libyan standards. This study emphasized the relationship between K. pneumoniae and raw milk, cheese, milk powder, and infant milk retailed in Libya. There is a need to take the necessary measures to ensure effective hygiene practices during production in dairy factories, handling, and distribution on the market, in particular at a small local production scale.