Abstract This paper studies the GMM estimation with the best linear and quadratic moments for a spatial autoregressive model with an endogenous spatial weights matrix. The proposed estimator is asymptotically more efficient than the QML estimator when the disturbances are non-normal.