I remember watching a segment about it. If I remember correctly, Nixon did it to screw over Great Britain because they were demanding the US pay its debt to it in gold dollars.
It was France I think.
The problem was that the Gold Standard hadn’t been adhered to - too many notes printed for the then-current price of Gold - and France (or whomever) wanted to preserve its buying power.