The bolt inside the guitar neck is the truss rod. Its job is to counteract string tension and adjust the neck's relief (the slight curvature along its length).
Most players prefer a slight amount of relief for comfortable playability and to avoid fret buzz. Too much relief makes the action high and stiff; too little causes buzzing, especially on the lower frets.
If you're unsure about adjusting the truss rod, consult a qualified guitar technician. Improper adjustment can damage the neck. A professional setup ensures optimal playability and protects your instrument.