The invention provides a polyphenylene oxide composition used for a photovoltaic junction box. The composition comprises the following components by weight: 55-95 parts of polyphenylene oxide, 45-5 parts of styrene resin, 2-10 parts of a flexibilizer, 5-20 parts of a phosphate fire retardant, 0.5-2.5 parts of an acid absorbent, 0.2-0.6 part of a hindered phenol main antioxidant, 0.2-0.6 part of a phosphite auxiliary antioxidant, 0.3-1.5 parts of an ultraviolet absorbent, 0.3-1.5 parts of a hindered amine light stabilizer, 0.1-0.5 part of a lubricating agent, and 0.1-1.0 part of toner. With the characteristics of good flame resistance, thermo-oxidative aging resistance, UV (ultraviolet) resistance, excellent electrical performances, the composition of the invention has flame retardancy up to grade UL945VA, RTI (relative temperature index)=110DEG C, CTI (comparative tracking index) PLC ( programmable logic controller)=2, and GWIT (glow wire ignition temperature)=750DEG C, thus satisfying the requirements in ROHS (restriction of hazardous substances) standard. Thus, the composition provided in the invention can be used for electronic and electrical component production of solar photovoltaic junction boxes, etc.