This discussion addresses the intricate relationship between phylacteries and the restroom, a topic that might initially seem self-evident but requires a deep understanding of halachic sources due to historical contexts and nuanced distinctions. In earlier times, restrooms were not always permanent, designated structures; people often relieved themselves in temporary, impromptu locations such as bushes or behind walls. This historical reality gives rise to specific questions regarding the permissibility of wearing phylacteries in such circumstances.
The primary inquiry revolves around two scenarios: defecating and urinating while wearing phylacteries. Regarding defecating, it is unequivocally forbidden. This is a straightforward ruling, as Jewish law dictates that one cannot even pass wind while wearing phylacteries, let alone engage in more significant bodily functions. The prohibition applies whether one is wearing the hand phylactery or the head phylactery.
The more complex issue concerns urinating. The Shulchan Aruch, in Siman Mem Gimal, Halacha Aleph, states that a person cannot enter a permanent restroom, which is designated for defecating, even if his sole intention is to urinate, while wearing phylacteries. The reason for this prohibition is a rabbinic decree, or *Gezerah*. The concern is that once a person is in a permanent restroom, the environment might lead him to defecate. This implies that, in principle, urinating with phylacteries on might not be inherently problematic, but the *Gezerah* makes it forbidden in a permanent restroom. However, this ruling by the Shulchan Aruch seems to suggest that if one is in a temporary restroom, such as outdoors, it might be permissible, provided one is careful not to pass wind.
This point leads to a significant dispute among early authorities, known as *Mahloket Rishonim*. According to Tosafot and Rabbeinu Asher, it is permissible to urinate in an impromptu or temporary restroom while wearing phylacteries. They reason that in such informal settings, there is no fear that one will defecate, as people typically do not perform such acts in those places. The Mishnah Berurah adds that one must still be careful not to pass wind. Conversely, Rambam holds a stricter view, prohibiting urination even in an impromptu restroom. His reasoning is also a *Gezerah*, fearing that one might inadvertently pass wind. The Shulchan Aruch, in his work Bet Yosef, strongly recommended following the stringent opinion of Rambam, even though the language in the Shulchan Aruch itself initially seemed more lenient for temporary restrooms.
This *Mahloket Rishonim* creates a practical dilemma: What if a person is wearing phylacteries, perhaps having prayed at home and intending to join the congregation for the silent prayer, and suddenly feels the urge to urinate? If he removes his phylacteries, he risks missing the congregational prayer. The question then becomes whether he may rely on the lenient opinions to urinate in an impromptu location to avoid missing the prayer. The Hayah Adam is quoted in the Mishnah Berurah as stating that if a person realizes that removing and then replacing his phylacteries would cause him to miss congregational prayer, he may rely on the lenient opinion that permits urinating in an impromptu restroom while wearing phylacteries. The Mishnah Berurah further notes that the custom is to remove the head phylactery and loosen the straps of the hand phylactery to prevent any drops from reaching them. However, the Kaf Hachaim Sofer disagrees, maintaining that it is always forbidden to urinate with phylacteries on, even if it means missing the congregational prayer, as one can always find another prayer service.
It is important to note a historical and cultural distinction regarding public urination. In ancient times, it was not considered immodest or immoral. In fact, Jewish law is strict about not holding in one's bodily needs, as it can cause health problems and is even linked in the Gemara to the prohibition against making oneself sterile. The Gemara illustrates this point by comparing human behavior to animals, which relieve themselves immediately when needed. However, in modern Western society, public urination is unacceptable and constitutes a desecration of God's name (*halul Hashem*). Therefore, a Torah scholar, or anyone who represents Jewish values, should postpone urinating until a proper restroom can be found. This principle is brought down by Yaqub Yosef as well.
The definition of an "impromptu restroom" is also relevant. Any place used for urination, even once, can be considered an impromptu restroom. According to Rambam, wearing phylacteries in such a place while urinating is always forbidden. This raises a question about modern restrooms, particularly those with separate urinals and stalls. A stall, being designated for defecation, is clearly a permanent restroom, and it would be forbidden to enter it with phylacteries. However, a urinal, used only for urination, might be considered an impromptu restroom. If this logic holds, there might be room for leniency for someone to use a urinal with phylacteries on, according to the opinions of Tosafot and Rabbeinu Asher, and the initial inclination of the Shulchan Aruch, which the Maggen Avraham only suspected of being lenient. However, the prevailing view considers the entire restroom, including urinals, as a single unit. Since stalls are present, the entire space is deemed suitable for defecation, and entering it with phylacteries on could trigger the *Gezerah* of potentially defecating. Nevertheless, the Kaf Hachaim Sofer's stringent ruling ultimately dictates that one should not enter any restroom, permanent or temporary, with phylacteries on for urination.
Beyond actual bodily functions, the question arises whether it is permissible simply to enter a restroom with phylacteries on, for example, to wash hands or retrieve an item. While some authorities have been lenient, the consensus, as inferred from the Shulchan Aruch and supported by the Maggen Avraham and the conclusion of Hacham David Yosef, is to be stringent and avoid entering a restroom with phylacteries for any reason. The Be'ur Halacha discusses the possibility of merely passing through a restroom with phylacteries, but the general practice remains to avoid it. The core principle is that a restroom is an impure place, and phylacteries are holy objects, making their presence together problematic.
Finally, there is the halacha regarding the distance one must maintain from a restroom when removing phylacteries. The Shulchan Aruch states that if one intends to enter a permanent restroom, one must remove phylacteries at a distance of four cubits (*amot*) from the entrance. After removal, they should be folded and held in the right hand or placed in one's garment. One must also be careful not to clean oneself with the right hand, which is used for phylacteries, but rather with the left. After completing one's needs, one walks four *amot* away, cleans their hands, and then puts the phylacteries back on. However, this rule regarding the four *amot* distance applies to the outhouses and latrines of old, which were separate, unsanitary structures whose outer walls were considered as impure as the inside. As explained by Shavod, in modern times, restrooms are typically clean, part of larger buildings, and their outer walls are not considered impure. Therefore, today, it is not necessary to measure four *amot* from the restroom door. One may remove phylacteries immediately adjacent to the door, provided they are not within the restroom itself. Despite the unappetizing nature of these discussions, understanding these precise laws is crucial for proper observance.

