We investigated subarachnoid haemorrhage (SAH) macrophage subpopulations and identified relevant key genes for improving diagnostic and therapeutic strategies. SAH rat models were established, and brain tissue samples underwent single‐cell transcriptome sequencing and bulk RNA‐seq. Using single‐cell data, distinct macrophage subpopulations, including a unique SAH subset, were identified. The hdWGCNA method revealed 160 key macrophage‐related genes. Univariate analysis and lasso regression selected 10 genes for constructing a diagnostic model. Machine learning algorithms facilitated model development. Cellular infiltration was assessed using the MCPcounter algorithm, and a heatmap integrated cell abundance and gene expression. A 3 × 3 convolutional neural network created an additional diagnostic model, while molecular docking identified potential drugs. The diagnostic model based on the 10 selected genes achieved excellent performance, with an AUC of 1 in both training and validation datasets. The heatmap, combining cell abundance and gene expression, provided insights into SAH cellular composition. The convolutional neural network model exhibited a sensitivity and specificity of 1 in both datasets. Additionally, CD14, GPNMB, SPP1 and PRDX5 were specifically expressed in SAH‐associated macrophages, highlighting its potential as a therapeutic target. Network pharmacology analysis identified some targeting drugs for SAH treatment. Our study characterised SAH macrophage subpopulations and identified key associated genes. We developed a robust diagnostic model and recognised CD14, GPNMB, SPP1 and PRDX5 as potential therapeutic targets. Further experiments and clinical investigations are needed to validate these findings and explore the clinical implications of targets in SAH treatment.