Economical and environmentally friendly hard carbon materials are attractive options for high-performance sodium-ion battery anode materials. Biomass-derived hard carbon materials have good economic benefits and environmentally friendliness as anode materials for sodium-ion batteries. In this work, we propose a new hard carbon material prepared from agricultural waste olive shells through a simple and environmentally friendly process. The effects of high-temperature treatments and pre-carbonization strategies on the pore structure and graphitization degree of the hard carbon materials were investigated. Combined with electrochemical performance tests, the influence of structural changes on the sodium storage properties of the olive shell-derived hard carbon was revealed. Under the optimized conditions of carbonization temperature and pre-carbonization strategy, the OSHC-Air electrode exhibits excellent sodium storage capacity with 87 % capacity remaining after 1000 cycles at 1000 mA g−1. The assembled PB//OSHC-Air sodium-ion full cell exhibits a high capacity of 216 mAh g−1. Our research provides a potential candidate for commercial anode materials for high-capacity sodium-ion batteries.