An electronic switch control circuit for a solar lighting system and a method for controlling the same. Solar panels of the solar lighting system are respectively coupled to a charging circuit and a photoelectric signal identification circuit which is coupled to a logic control circuit and an enable circuit sequentially. The enable circuit is respectively coupled to a driving circuit and the charging circuit. The photoelectric signal identification circuit, the logic control circuit, the enable circuit and the charging circuit are respectively coupled to the common end of the driving circuit and rechargeable batteries. The electronic switch control circuit further includes a timing circuit and an oscillating circuit, wherein the oscillation circuit is coupled to the timing circuit, and the timing circuit is coupled to the logic circuit. The oscillation circuit and the timing circuit are coupled to the common end of the rechargeable batteries and the driving circuit.