He has Drizzy to thank for his new sober lifestyle!

John Mayer just revealed that he quit drinking two years ago after making a "fool" of himself at Drake's 30th birthday bash.

“I was doing a show with Dave Chappelle, and Drake was in the audience. Drake came up, he said hello. And I hadn’t seen him since his birthday. He reminded me — well, he didn’t really remind me, he told me for the first time ’cause I was pretty far gone, it was the last night I had ever had a drink — that when I said goodbye to him, and was about to leave the club and go into the street, I put my arms out in front of him and I said, ‘Remember me, and remember this,’ and just walked out. Apparently it was like, what did he just say?” the singer told Complex.

"Chappelle lost it, that [I] would have said that. And I have confirmation from someone else standing next to him that ultimately, I wasn’t so bad that night. I found out it wasn’t as bad as I thought. Apparently held it mostly together," he added.

His mortifying behavior, coupled with a wicked hangover, brought him to his knees and made him embrace an alcohol-free lifestyle.

“I was in my sixth day of the hangover. That’s how big the hangover was. I looked out the window and I went, ‘OK, John, what percentage of your potential would you like to have? Because if you say you’d like 60, and you’d like to spend the other 40 having fun, that’s fine. But what percentage of what is available to you would you like to make happen? There’s no wrong answer. What is it?’ I went, ‘100,'" he revealed.

So what advice does he have for people that want to do the same?

"If I were to tell other people how they could do it, it just is so particular to your own spirit and your own psychology that it’s almost impossible to develop one way of explaining it to someone else. You have to fight really hard to look at it from a critical point of view because it’s constantly pushed on you. Every Friday and Saturday, on social media, there is enabling going on for drinking. What if I woke up every morning on Saturday and Sunday and put my feet on the ground and I just went ‘not hungover’ and put it on social media every day? That would be an influence on people because I think you forget that’s an option. If you look at drinking the way you would look at anything else, which is risk-reward, what am I giving up? What am I getting? It’s some of the worst odds that ever existed," he explained.

We're glad he got his act together... did he also pick up a new girlfriend in the process? We asked Halsey about the rumors the two are secretly dating, watch what she has to say!