Dan Cody is a wealthy man who took Nick Carraway under his wing when he was younger. He was a mentor to Nick and they were close friends.
In Chapter 6, Dan Cody did two things for Gatsby. He first introduced Gatsby to Meyer Wolfsheim, a man with underworld connections. He then gave Gatsby a job as his secretary.