Stanford head coach David Shaw has resigned after 12 seasons at his alma mater.

Shaw announced his decision to step down, effective immediately, after Saturday night's 36-25 loss to BYU in Stanford's season finale.

"I prayed about it, I thought about it," Shaw said. "With every hour it seemed, it was more cemented in my head. The phrase that kept coming to me is: 'It's time.'"

Shaw, 50, said he had not considered resigning until earlier this past week and said he has no desire to coach another team at this point.