SbTe is a very interesting material for rewritable optical media. We study of the switching mechanism between the amorphous and crystal states theoretically.