Benzothiadiazole-pyridine compounds were directly synthesized via a modified amination route. They show the attracting modulation of optical and nonlinear optical (NLO) performances by molecular polarity feature. Enhanced NLO molecular capability was connected with the quasi-D-A organic structure. The switch-on of NLO refraction signaling from negative to positive, was triggered by the external Fe3+ ion.