Recently, bacterial endophytes (BEs) have gained importance in the agricultural sector for their use as biocontrol agents to manage plant pathogens. Outbreak of the pine wilt disease (PWD) in Korea has led researchers to test the feasibility of BEs in controlling the pine wood nematode (PWN)
Bursaphelenchus xylophilus
. In this study, we have reported the diversity and biocontrol activity of BEs against the PWN. By employing a culture-dependent approach, 1,622 BEs were isolated from the needle, stem, and root tissues of
P
.
densiflora
,
P
.
rigida
,
P
.
thunbergii
, and
P
.
koraiensis
across 18 sampling sites in Korea. We classified 389 members based on 16S rDNA analysis and taxonomic binning, of which, 215 operational taxonomic units (OTUs) were determined. Using Shannon’s indices, diversity across the
Pinus
species and tissues was estimated to reveal the composition of BEs and their tissue-specific preferences. When their ethyl acetate crude extracts were analysed for biocontrol activity, 44 candidates with nematicidal activity were obtained. Among these,
Stenotrophomonas
and
Bacillus
sp. exhibited significant inhibitory activity against PWN during their developmental stages. Altogether, our study furnishes a basic comprehension of bacterial communities found in the
Pinus
species and highlights the potential of BEs as biocontrol agents to combat PWD.