Abstract: A lighting device is provided. The lighting device includes a switch-mode power supply module, an electronic ballast power supply module, a first single-pole double-throw switch, a second single-pole double-throw switch, a third single-pole double-throw switch, a fourth single-pole double-throw switch, and a direct-current driven lighting module. The lighting device is connected with the ballast, one input of the ballast is connected to an AC power supply. The switch-mode power supply module and the electronic ballast power supply module are used to convert AC into DC. The common end of four single-pole double-throw switch is connected with the ballast. When the ballast is an inductive ballast, the common end of four single-pole double-throw switch is connected to the input of the switch-mode power supply module. When the ballast is the electronic ballast, the common end of four single-pole double-throw switch is connected to the output of the electronic ballast power modules.