The Basis of the Mitzva
יסוד המצווה
The aim of the Torah is to elevate life in all its components, without exception. Therefore, there are mitzvot directed to agriculture and working the land, there are mitzvot that pertain to the family, such as marriage and nidda, and there are mitzvot placed on a person’s body, such as tefillin and tzitzit. A person’s home, too, is not outside the realm of the mitzvot, and the central mitzva that the Torah designated for it is the mitzva of mezuza.
In two passages of the Torah it is stated: “And you shall write them upon the doorposts of your house and upon your gates” – in the passage of “Shema” (Devarim 6:9) and in the passage of “Ve-haya im shamo’a” (ibid. 11:20). From here we learn that these two passages must be affixed to the doorpost of the entrance of the house. The Torah further said: “That your days may be multiplied, and the days of your children” (ibid. 11:21), and from here the Sages learned that whoever is careful with the mitzva of mezuza, his days and the days of his children will be lengthened. Even the Shulḥan Arukh, which does not deal with matters of aggada and whose entire purpose is to summarize halakhic rulings, took the trouble to write (YD 285:1) that whoever is careful with the mitzva of mezuza, his days and the days of his children will be lengthened, and if he is not careful, they will be shortened (see Shabbat 32b).
The home may cause one to forget faith and to become disconnected from the source of life, from God. A person dwells securely within his sturdy walls and thinks that he has nothing more to worry about, everything is fine. But the truth is that in order for life to continue flowing and progressing, one must always remember the source of life. Therefore, the mezuza must be affixed at the entrance of the house, so that every time one enters and every time one leaves, one will again remember the foundations of faith written in it, including the famous verse: “Hear, O Israel, the Lord is our God, the Lord is one” (Devarim 6:4).
Therefore, the custom is to place one’s hand on the mezuza and kiss it, in order to remember the significance of the mezuza when leaving the house and when entering (Rema YD 285:2).