Cardiovascular disease is any illness that makes the heart work less well. Researchers are working on making smart systems that can correctly detect heart conditions from electronic health data using machine learning algorithms. This is because heart conditions can be very serious. In this study, data from patients and key clinical factors are used to identify cardiovascular disease using machine learning. The main goal of the suggested model is to improve the accuracy and reliability of predicting cardiac disease by focusing on parameter tuning, ensemble methods, and recursive feature removal approaches. Our methods for making predictions included logistic regression, decision trees, K-nearest neighbour (KNN), support vector machine (SVM), naive bayes (NB) machine learning (ML) approaches, ensemble technique approaches, and artificial neural networks (ANN) with stress on regularisation. Compared to the other ways, it was found that using a KNN model gave the most accurate results for the model. A number of factors, such as accuracy, precision, memory, and F1-score, were used to judge the models. The KNN model is the most accurate, at 97.8%.