The invention belongs to the technical field of lithium sulfur batteries, specifically relates to a sulfur-carbon composite material with a nitrogen-doped porous carbon nanofiber net-shaped structure, as well as a preparation method and an application of the composite material. By taking a polypyrrole net-shaped structure which is synthesized by virtue of a soft template method as a raw material, taking the potassium hydroxide as a pore forming agent, and taking the nitrogen-doped carbon nanofiber net-shaped structure which is synthesized through high-temperature carbonization under nitrogen atmosphere and is in a porous structure as a precursor, the sulphur-carbon composite material which can be used as the anode of the lithium sulfur battery can be prepared through heat treatment with elemental sulfur. The preparation method provided by the invention is simple, and good in reproducibility, and the prepared composite material is uniform in structure distribution, and can be used as the anode of the lithium sulfur battery. Due to the nitrogen doping and the tridimensional net-shaped structure, for the material, the conductivity can be improved, a transmission path of lithium ions is shortened, meanwhile, the dissolving of the sulfur and intermediate product in an electrolyte can be prevented, the electrochemistry performance of a positive material of the lithium sulfur battery is improved, good specific discharge capacity, cycle performance and rate performance can be achieved.