A phase of mitosis and meiosis in which the chromosomes separate.