John Mayer is a man of many talents. Not only is he an extremely gifted guitar player, singer, and songwriter, he's apparently a great friend, too. This Connecticut native has enjoyed mainstream success since his debut in 1998, but it's the friendships he's built along the way that have shown fans just how close John is with his industry pals.

Even his exes, including Katy Perry, are said to be on good terms with him, despite the fact that they're no longer together. This gives fans all the more reason to love this man. But what makes John Mayer such a great friend, and who are the people in Hollywood that he deems as his closest buddies?

There are some surprising names on this list, including former Friends star, Courteney Cox and Mandy Moore. Here are the 18 celebs John Mayer is surprisingly known to be pals with.

18 Alicia Keys

His friendship with Alicia is one of the longest friendships John has shared with a fellow celebrity in Hollywood. The two have collaborated on multiple occasions, most notably for Keys’ song, "Lesson Learned". There’s no denying that, aside from their friendship, these two are a perfect musical duo.

17 Harry Styles

In October of 2019, John shared a photo of himself with pop star Harry Styles, which he later posted to his Instagram page, with a hilarious caption that read: "This is a photo with @harrystyles in it, and I almost didn’t post it. Like many of you, I keep a close eye on my IG thirst levels."

16 Andy Cohen

In what seems to be quite a random friendship, Andy Cohen and James Mayer have been best pals for quite a long time now. The two have vacationed together in Brazil and also explored the great state of Montana. And, of course, John has made several appearances on Watch What Happens Live with Andy Cohen.

15 Katy Perry

Katy and John have shared quite a confusing relationship in the past, particularly since they were constantly on and off with one another. However, it seems both parties have moved on from one another, with Katy now engaged to actor Orlando Bloom. However, it’s believed that John and Katy are still close pals.

14 Courteney Cox

Courteney Cox has been seen out and about, enjoying fun-filled events with John Mayer, on multiple occasions in Los Angeles. And while people were quick to assume that the two were dating, they actually just happen to be very good friends. They crossed paths in the past when John was still dating Jennifer Aniston.

RELATED: 10 Celebs John Mayer Has Dated (10 Who Wouldn’t Dare)

13 David Arquette

And it looks like Courteney’s ex-husband, David Arquette, was also fond of John Mayer. The actor had previously been seen showing up at an eatery called STK in Beverly Hills where he dined with John and a group of pals. They all enjoyed seafood and drinks. The two haven’t been seen together in a while but are still believed to be good friends.

12 Ellen Degeneres

This one shouldn’t be too shocking since Ellen Degeneres has never made it a secret how much she loves John Mayer’s music. On top of that, the "Who You Love" hitmaker has made plenty of appearances on Ellen’s talk show, and given exclusive performances on the show, too. That’s what friends are for.

11 Gavin Rossdale

Gavin Rossdale has been seen out and about with John Mayer on a number of occasions, leading fans to believe that they are pretty good friends. The Bush frontman has been seen attending concerts with John in the past, and since they’re both fans of live music, this friendship seems to be the perfect pairing.

10 Justin Long

Justin Long and John Mayer actually attended the same high school together, way before they both built successful careers in showbiz. And while they weren’t friends in their early years, John and Justin share a chat whenever they cross paths. They congratulate each other on their projects.

9 Mandy Moore

While John and Mandy have often been rumored to be dating, they aren’t anything more than good friends - at least, from what fans have gathered. Aside from attending public events together, John has also plugged Mandy’s show, This Is Us, to his fans on Twitter. He did this following the premiere of the show's pilot episode.

RELATED: 20 Photos Of John Mayer With His Too-Gorgeous-For-Him Girlfriends