What type of change had occurred when a nail rusts
That would be a chemical change.
The type of change is chemical