We know that we have the minhag (custom) not to say Tachanun (supplication prayer) from Rosh Chodesh (new month) Sivan until after Shavuot, but that's a different thing, so until Shavuot at least. Not everyone has that minhag, but most communities have the minhag not to say Tachanun. What is the reason? It's actually not so simple, because we know about the three days before Matan Torah (giving of the Torah) called Sheloshet Yemei Hagbalah, the three days of preparation, that lead to the day of Matan Torah. Rosh Chodesh, we don't say Tachanun anyway because of Rosh Chodesh. What about that day in between Rosh Chodesh and Gimel (third)? So Gimel, Dalet (fourth), Heh (fifth)—three days—and Vav (sixth) is Shavuot. Aleph (first) is Rosh Chodesh, but Bet (second)—what is it?
Bet is the day that HaKadosh Baruch Hu basically officially accepted, let's say, the request of the Bnei Yisrael to receive the Torah, and when He declares, Vehyitem li segulah mikol ha'amim, when He says officially what is going to cost us 3,300 years of anger from the other nations—which is Vehyitem li segulah mikol ha'amim, “you are going to be, we call it the chosen nation”; segulah mikol ha'amim, “special nation in the eyes of HaKadosh Baruch Hu.” That apparently happened on Bet Sivan, the day after Rosh Chodesh Sivan. Just that by itself is already worthy of being a very joyful day. A very joyful day, and therefore we have the custom not to say Tachanun, of course within the subject of Matan Torah, but all connected.
There is another reason that is brought in the Midrash. The Midrash doesn't say not to say Tachanun, because the concept of Tachanun is actually also only a minhag, possibly from the time of the Geonim. But the Midrash talks about the days leading to Matan Torah. The Midrash says that, just as you have in a normal wedding, Chag Shavuot is like a wedding between Klal Yisrael and HaKadosh Baruch Hu. And just as you have seven days of festivities at a celebration or a wedding, here too it would be the same concept. Of course, the problem is that it's backwards. Normally, the festivities are after the wedding, and here they're before the wedding. Why is it backwards? The truth of the matter is, it's not really a problem. We see that for any historic date that you commemorate, it's the opposite of the normal feeling. Normally, a chatan (groom) and a kallah (bride), of course, get very excited toward the wedding, but then they have days after the wedding. The same thing, lo aleinu (may it not befall us), in the opposite case: somebody is sitting shiva (seven-day mourning period). When do they sit shiva? After the loss of a relative. But when it comes to Tisha B'Av, for example, we lead up to Tisha B'Av with increasing mourning practices until we reach Tisha B'Av. And after Tisha B'Av, that's it, it's over. We see that when it's historic, it's the opposite. Because you commemorate a date and you're trying to have a similar feeling, and for that, you need to build up to it.
It's the same idea here also, because the wedding day is Chag Shavuot. You need to lead up to that day, so it would be backwards. Instead of having the Sheva Berachot, seven days of Berachot (blessings), after, you do it before. It's not exactly seven, but it's the same concept according to Midrash. And that would be the reason why most communities do not say Tachanun before Shavuot b'chavod (with honor).