In a criminal trial, when do witnesses take the stand to testify?

during sentencing
during jury selection
during jury deliberation
during evidence presentation