Metal-insulator transition in NiS
2−xSe
xThis study identifies the bonding-antibonding splitting in the S–S (Se–Se) dimer as the main parameter controlling the charge gap in NiS$_2$ and the metal-insulator transition in NiS$_{2-x}$Se$_x$ solid solutions. The conclusion is supported by first-principles band structures combined with dynamical mean-field theory, and by infrared and x-ray absorption spectroscopy. The role of pressure and Se doping in driving the transition is discussed within this framework.