Its called a Belleville spring/washer and it works by pressure.
The washer is curved and when the nut is tightened down against it, the washer flattens out. But due to the heat treated memory of the metal, it wants to remain curved and pushes back against the nut which creates a locking effect between the threads on the nut and the threads on the bolt.
Chat with our AI personalities