Pollutants can exist in the soil for a long time and alter the bacterial community. Using lubricants to prevent the wear of chainsaw blades is necessary for thinning activities and wood harvesting. We investigated the influences of soil contamination with chainsaw lubricants on soil bacterial communities. Bio-oil, mineral oil, and recycled oil were scattered on each treatment to investigate variations in soil bacterial structure during treated periods using the Illumina MiSeq sequencing platform. The results obtained were 5943 ASVs, 5112 ASVs, and 6136 ASVs after treatment at one month, six months, and twelve months, respectively. There was a significant difference in Shannon and Simpson indices between treatments and controls. A total of 46 bacterial genera with an average relative abundance of more than 1.0% were detected in all soil samples. Massilia was the most common genus detected in control at one month, with an average relative abundance of 14.99%, while Chthoniobacter was the most abundant genus detected in bio-oil, mineral oil, and recycled oil treatments at one month, with an average relative abundance of 13.39%, 14.32%, and 10.47%, respectively. Among the three chainsaw lubricants, bio-oil and mineral oil had fewer impacts than recycled oil. The abundances of several functional bacteria groups in the bio-oil treatment were higher than in other treatments and controls. Our results indicated that different chainsaw lubricants and their time of application affected the soil bacterial community composition.