This article discusses in depth some of the things that happened before Mattan Totah i e HaShem going to the other nations and offering them the Torah, the mountains arguing over the honor of having the Torah given on it, etc