Lewis admitted he has struggled ever since his fifth place in the Olympic final at London 2012 but the 28-year old was finally wearing a broad smile at Hampden Park.
However, he did it the hard way after after he was locked in a memorable battle with English team-mate Luke Cutts.
Their clearance record was identical when they both failed three attempts at 5.60m, meaning the top medal was decided by a tense jump off.
Blake suffers shock defeat as Simbine takes gold in 100m
And when Cutts knocked down 5.55m, British record holder Lewis took advantage to take the title, upgrading his silver medal from 2010 and bronze four years earlier in Melbourne.
"I think the end of 2012 was really tough for me with a bunch of family things that happened – 2013 I was running on nothing and was emotionally drained," said Lewis.
"This year I’ve settled down, I’ve got a new set-up in America and a base I can build off. I’m just so happy that I can look forward to Rio now.
"I’m rooming with Greg Rutherford and he came in late with his gold medal – everyone wants to party and I’m just trying to get some sleep.
"I just had to try and focus – I’ve been here a few times now and just to get the win feels so good and hopefully I can take that confidence forward now.
"Getting the set of Commonwealth medals was a big goal – 2006 was such a surprise, I got close in Delhi and just to have the set is amazing. It’s testament to the people who didn't write me off in 2013."
Lynsey Sharp produced a strong finish to win silver in the women’s 800m final just hours after having a hospital drip in her arm.
The 24-year-old scraped through to the final as a fastest loser but with a little help from the deafening home crowd she came on in the last 100m to finish behind Kenya’s Eunice Jepkoech Sum.
"There was no way after going through everything I have been through I was not going to get a medal," she said.
"This is my everything. The last year has been obstacle after obstacle, even right up to this morning being in hospital in the athletes' village until 5.30am.
"I hadn't slept for 12 hours and was throwing up all night and had a drip in my arm.
“I had to come out and get it right. People were saying 'this is your time'.
“I did believe that but there was still some doubt and, after everything I have been through, how I can be in this shape is a miracle."
Elsewhere, Tiffany Porter took 100m hurdles silver behind Australian Olympic champion Sally Pearson, Isobel Pooley claimed second in the high jump and Jade Lally finished third in the discus final.
“I am really happy to come away with a medal, I am just glad to have executed when it really mattered. It was a big blur, everything happened so fast. It wasn’t the most perfectly executed race but I am just happy to have a medal," said Porter.
“Some days you are at your best and some days you are not but every day is a new race and even though I lost today I am looking to redeem myself and get at the top of the podium because I have never got gold before.”
© Sportsbeat 2014
Gemili pulls out of Commonwealth Games 100m final with injury
Scott upsets Chalmers to win 100m freestyle title