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