In our study, we utilized several machine learning algorithms to determine that LAPTM5, SLC40A1, TYROBP, CTSB, and PYCARD, which are related to macrophage genes, can act as diagnostic indicators for individuals with atherosclerosis and are linked to immune infiltration in this disease. Here, CTSB is linked to atherosclerosis.