The authorities have not released an official cause of death, but they are saying it looks like suicide. Williams was very open about the depression and addictions he battled his whole life.
I never cared much for his stand-up routine, but he created some funny characters, and also did a lot of great serious roles as well.