A square nut is a four-sided nut. Compared to standard hex nuts, square nuts have a greater surface in contact with the part being fastened, and therefore provide greater resistance to loosening (though also greater resistance to tightening). They are also much less likely to become rounded-off after repeated loosening/tightening cycles.