Fungal contamination of dried and baked foods remains a major microbial safety concern in tropical developing regions, particularly within open-market systems characterized by poor hygiene, environmental exposure, and suboptimal storage conditions. This study investigated fungal contamination, yeast diversity, molecular identity, antifungal susceptibility, and phylogenetic relationships among fungi isolated from 18 selected flour and baked foods (yam and cassava flour, white and yellow cassava flakes, with bread and sausages) marketed in Lagos and Ogun States, Nigeria. Fungal enumeration, biochemical characterization, ITS-rDNA sequencing, antifungal susceptibility testing (using CLSI protocol with fluconazole, itraconazole, posaconazole, flucytosine, voriconazole, as well as amphoteric B) and phylogenetic analysis were employed for isolate evaluation. Predominance of low-to-moderate fungal loads (0–75 MPN/g) suggests that the foods remained consistently exposed to fungal contamination within market environments. Contamination was particularly evident in all samples with highest burden recorded in Osiele market (74 MPN/g), indicating influence of post-processing handling, storage conditions, and environmental exposure. Biochemical characterization suggested mixed yeast populations comprising Pichia spp. (55.60%) and non-albicans Candida spp. (44.40%); however, molecular analysis resolved all isolates as Pichia kudriavzevii, demonstrating notable intraspecific diversity (81.05–97.90% similarity). Antifungal susceptibility revealed multidrug resistance, characterized by high resistance to fluconazole (88.89%) and amphotericin B (83.33%), while all isolates displayed MDR indices ≥0.50 and 22.22% exhibited resistance to all tested antifungal agents. Phylogenetic analysis further demonstrated a monophyletic but genetically variable population structure. Overall, the study indicates that flour and baked foods in southwestern Nigeria may function as reservoirs of genetically diverse, osmotolerant, multidrug-resistant Pichia kudriavzevii. Presence of Pichia kudriavzevii in foods could pose public-health risk of candiasis in consumers, due to its potential to colonize or infect vulnerable individuals and its ability to harbor and disseminate antimicrobial resistance traits. Contamination pattern may be driven by post-processing exposure, inadequate hygienic practices, and storage-related factors, highlighting important implications for food safety monitoring and public health protection.