This is a single centre phase I/II study which will be conducted in two stages. The ability of AMD3100 to augment the antileukemic effect of chemotherapy and stem cell transplantation in patients with MDS or with AML in first or subsequent relapse, second or greater remission or primary induction failure will be assessed.