"In regards to the gay club tweet from 2012, I used poor and harsh words to describe a bad experience, and is not indicative of how I feel about the people in that community. To everyone I offended with that, pls accept my apology," Sandgren wrote on Thursday.
Sandgren had found his views under intense scrutiny following his sensational breakthrough at Melbourne Park.
The American, though, insisted who he followed or retweeted on Twitter did not represent who he is — but subsequently deleted all his messages on the social media platform bar one.
Directly addressing Sandgren, Williams had written on Twitter: "I don't need or want one. But there is an entire group of people that deserves an apology. I cant look at my daughter and tell her I sat back and was quiet.
"No! she will know how to stand up for herself and others- through my example." After his singles exit, Sandgren walked into the press conference room stony- faced before reading the monologue off his phone.
Sandgren later added he would head home to Tennessee to reflect on everything that has happened this fortnight.
"I'm going to go home and enjoy time with my family, turn off my phone, just really reflect on the last two weeks, reflect where my life has gone to, where I'm at, where I am in this stage at 26, who I am as a person, who I want to continue trying to be, where I want to go in the sport, where I want to go as a man," he said.