In practical classification problems, imbalanced class distribution is very common. Traditional classification methods usually aim at optimizing the overall accuracy, which leads to classification decisions biased towards categories with a large number of samples. Similar to most traditional classifiers, Naive Bayes (NB) is sensitive to the class prior distribution and has poor recognition performance for minority class samples, which restricts its application in imbalanced classification. Therefore, we propose a Bayesian classifier based on distance-corrected multivariate kernel density estimation (BC-DMKDE). BC-DMKDE relaxes the assumptions regarding conditional independence and the normality of continuous variables in NB classifiers, by incorporating the multivariate kernel density estimation (MKDE). We also incorporate a distance-correction mechanism utilizing kernel density estimation, specifically to alleviate the impact of class imbalance and overlapping data samples. Across 18 real-world benchmarks, BC-DMKDE exhibits superior classification performance and robustness, outperforming existing methods at both the algorithm and data levels.