A square nut is a four-sided nut.
5/16"-18 Zinc Plated Steel Coarse Thread Square Nuts 20PK 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). Square nuts are typically mated with square-headed bolts..