From Middle Dutch niets, from Old Dutch niewihts, niewehts, partitive genitive of niewiht (whence modern niet). Cognate with German nichts. By surface analysis, n- + iets or niet + -s.
niets