The thirty-third day of the Omer count is called “Lag BaOmer.” As is well known, all the letters of the Holy Tongue have numerical values, and in sacred books all numbers are represented by letters. “Lag” is a combination of the letter “ל”, whose numerical value is 30, and the letter “ג”, whose numerical value is 3. Together, they make 33. This day always falls on the 18th of Iyar.
On this day, Rabbi Akiva's students stopped dying (their deaths are the reason mourning is observed between Pesach and Shavuot). According to one opinion cited in the Shulchan Aruch, none of them died after this day. According to another opinion, they continued to die afterward, and only on Lag BaOmer itself did none of them die. Either way, because Rabbi Akiva's students did not die on Lag BaOmer, the laws of mourning are not observed on this day.
Another great student of Rabbi Akiva, the tanna (a sage of the Mishnah) Rabbi Shimon bar Yochai, died on this day. However, as he was dying, he instructed that Lag BaOmer be made a day of joy and celebration. The reason is that, unlike the first generation of Rabbi Akiva's students, Rabbi Shimon bar Yochai died at an advanced age, surrounded by his students and followers. Thanks to the tremendous effort he devoted to Torah study, the Almighty revealed to him great secrets previously unknown to the sages. On the day of his death, he merited the greatest revelation of the Torah's most hidden secrets. For this reason, Kabbalists regard this day as a festival celebrating the giving of the esoteric Torah.
There is an ancient custom of visiting the graves of Rabbi Shimon bar Yochai and his son, Rabbi Elazar, on this day. These graves are in the village of Meron (near the city of Safed). It is customary to hold a meal and celebrate there. There is also a tradition of giving boys who are turning three around this time their first haircut there (chalakah). The boys keep their pe'ot, as required by halachah and tradition. It is not customary to cut boys' hair before this age, although doing so is not forbidden.
Kohanim who travel to Meron to visit the graves of Rabbi Shimon bar Yochai and his son must take care to avoid the ritual impurity present at graves and in cemeteries. They may not enter the building constructed over the graves of these righteous men.
For many centuries, large numbers of people have visited Meron. If a trip to Meron poses a physical danger or leads to immodest behavior, it should, of course, be avoided.
There is also a tradition of lighting bonfires, dancing around them, and singing songs about the holy tanna Rabbi Shimon bar Yochai.
In any case, we should not forget what enabled Rabbi Shimon to merit becoming such an important link in the transmission of the Torah, as well as the teacher of all who study its secrets. Tractate Shabbat (11a) states that Rabbi Shimon stood out even among the other tannaim of his time in that he studied Torah constantly and without interruption, to such an extent that fulfilling this commandment exempted him from the obligation to pray. The same tractate (folio 33) tells the story of how Rabbi Shimon and his son were forced to flee civilization and live in a cave. Even under such difficult conditions, these great righteous men continued to study Torah without interruption. It was precisely because of this that the Almighty revealed to them aspects of wisdom inaccessible to other people.
(Based on Rabbi Yehuda Chesner's book Sha'arei Yemei HaPesach, 11:5)