The Y chromosome, which distinguishes males from females at the genetic level, appeared some 180 million years ago. It originated twice independently in all mammals. Scientists have managed to date these events that are crucial for both mammalian evolution and our lives, because the Y chromosome determines whether we are born as a boy or girl.