The Yorkshireman and Danish partner Freddie Nielsen were wildcard entries into the men's doubles but, having beaten the Bryan brothers in the semi-finals, they then defeated the fifth seeds and runners-up for the past two years, Robert Lindstedt and Horia Tecau, in the final.
It was another five-setter, Marray and Nielsen's fourth, and again it was the Anglo-Danish duo who prevailed to win 4-6, 6-4, 7-6 (7/5), 6-7 (7/5), 6-3.
Marray is likely to be the highest-ranked British doubles player when the list is updated this week, but he knows he faces a challenge to dislodge Colin Fleming and Ross Hutchins. "They've got an established team with Ross and Colin at the moment," said Marray. "They've been doing great and it would be hard to shift them out of the team. But it would be a great honour to represent Great Britain. I was on the team in 2004, but I never got to play."
Marray and Nielsen, who each received £130,000, have never even reached the final at an ATP World Tour event but are now almost certain to qualify for the Barclays ATP World Tour Finals in November.
Marray had planned to play Wimbledon with Canada's Adil Shamasdin but the pair's combined ranking was not high enough. He had the back-up of a wild card and he asked Nielsen to partner him after the pair had reached the final at the Nottingham Challenger on grass last month, losing to Treat Conrad Huey and Dominic Inglot.
"After a good week, I really thought we could do well here," said Marray. "I didn't think we could ever win it but, as the week went on, we kept gaining confidence."
Marray's career thus far had been extremely low key, scraping a living on the Futures and Challenger tours and battling nagging injuries. The 31-year-old from Sheffield said: "Every sportsman has injuries at times in their career. When you're not really doing so well, in those moments you second-guess yourself whether you want to carry on or not. But I felt like I had a bit of unfinished business."
While Marray was the first British winner of the men's doubles title since 1936, Nielsen also had history on his shoulders, becoming the first Dane to win a grand-slam title and the first Wimbledon finalist from his country since his grandfather Kurt Nielsen, who died last year. He was twice a singles finalist in the 1950s.