We report a new lead-free perovskite-like hybrid, composed of hexamethyleneimine and one-dimensional [SbCl5]n2- polyanionic zigzag chains, which shows above-room-temperature switching of quadratic nonlinear optical (NLO) properties induced by the unique order-disorder conformational changes of the organic cation.