Background Antibiotic resistance is a significant public health issue worldwide. Antibiotic-resistant zoonotic bacteria such as Escherichia coli (E. coli), Campylobacter, Salmonella, Listeria, Coxiella, and Mycobacterium can be particularly isolated from biofertilizers. Epidemiological studies have shown that cases of foodborne infections and intoxications are significantly related to animal-derived foods. The presence of these species in aquatic environments indicates areas or organisms contaminated with animal or human feces. Especially, the presence of E. coli in aquatic environments has become a serious problem worldwide. Pathogenic strains of E. coli cause waterborne and foodborne diseases. Materials and methods This study included a total of 290 samples collected from five different dairy farms between April and September 2023 which comprised 20 samples of cow manure, 20 samples of milk, three samples of dairy workers' hand washing water, five samples ofsoil, five samples of water, and five samples of vegetables. The samples taken from the farms were homogenized with 0.1% peptone water at a ratio of 1/10. They were then cultured on xylose lysine deoxycholate (XLD), eosin methylene blue agar (EMB), and blood agar media, and gram-negative colonies were identified using matrix-assisted laser desorption/ionization time-of-flight mass spectrometry (MALDI-TOF MS) and the VITEK2 automated system (BioMerieux Inc., Durham, NC). Amplification of the isolated DNA extracts was performed with A.B.T.™ 2X HS-PCR MasterMix (A.B.T Laboratory Industry, Arnavutköy, Turkey) in the SimpliAmp™ thermal cycler (Thermo Fischer Scientific Inc., Waltham, MA) and visualized by agarose gel electrophoresis. Results Among the 52E. coli strains isolated in our study, the highest antibiotic sensitivity rate was observed in meropenem, while the lowest sensitivity rates were determined in cefazolin and cefuroxime. While two of the Salmonella spp. (n = 2) isolates were found to be resistant to tetracycline, and one was found to be resistant to penicillin and ampicillin. No resistance to trimethoprim/sulfamethoxazole was detected in either isolate. Extended-spectrum beta-lactamases (ESBLs) were detected in only four (7.7%) E. coli strains. While tetA, tetB, and TEM genes were seen in almost all E. coli strains, they were not found in Salmonella spp. Conclusion In conclusion, our study revealed the presence of antimicrobial resistance genes in E. coli and Salmonella spp. isolates collected from various farms and environmental samples, which render the antimicrobials used for disease treatment ineffective. Consequently, research should be undertaken to prevent the development of new resistance genes in our country, as creating new medications and treatment strategies for these diseases is costly and time-intensive.