Loud noise at the end of spin cycles

My washer is 2 yrs old. At the end of the spin cycles it makes a loud banging noise kind of like an unbalanced load.