The foundational moral principle running through all these sources is that the Torah here legislates in response to an acknowledged human weakness rather than endorsing what it permits: the Gemara (Kiddushin 21b–22a) articulates this directly — "the Torah spoke only in response to the evil inclination," and then frames the permission with a striking analogy: it is preferable that Jews eat the meat of a dying animal slaughtered in a permitted manner than that they consume it as an outright carcass, meaning that a controlled, regulated act is better than an unregulated forbidden one.
Rashi (Devarim 21:11–13) amplifies this by explaining that had the Torah not permitted her, the soldier would have taken her anyway in a forbidden manner — but then adds a moral warning built into the very structure of the parashah: the Torah juxtaposes the yefas toar with the passage of the stubborn and rebellious son, signaling that one who marries such a woman will ultimately hate her and risk fathering a rebellious child, so that the permission carries its own built-in deterrent.
The Sefer HaChinukh (Sefer HaChinukh 532) makes the moral architecture of the commandment explicit: the Torah "shut the door" before him by requiring that her head be shaved to ruin her beautiful hair, her nails grown to disfigure her hands, and that she be permitted to weep for a month so that her face becomes distorted — all measures deliberately designed to make her repulsive in his eyes and thus give his desire a chance to subside before any permanent commitment.
The Ramban (Devarim 21:11) sharpens the moral limit further: the Torah permits this only when his desire genuinely overpowers him; if he simply wishes to acquire a wife without that overwhelming compulsion, he may not take her at all — and the Ramban cites the Sifrei's ruling that he may not take her for his father or brother, only for himself, ruling out any opportunistic capture on behalf of others.
The Gemara in Sanhedrin 107a drives the consequentialist moral home through the story of David: Hushai rebukes him for marrying a yefas toar without heeding the juxtaposed verses, because "whoever marries a yefas toar has a stubborn and rebellious son" — showing that even a technically permitted act carries consequences the Torah itself forewarns against.
On the procedural side, the Rambam (Mishneh Torah, Melachim and Wars 8:1–6) and the Rambam (Mishneh Torah, Melachim and Wars 8:3) together codify a dense network of limiting rules: she may be taken only in the moment of captivity, he may not coerce her on the battlefield but must first bring her into his home, he may not have relations with her a second time until he marries her, and he may not take two captives simultaneously — each restriction constraining and channeling the desire rather than leaving it unchecked.
The Rambam (Mishneh Torah, Melachim and Wars 8:7–8) adds that if she refuses to convert after a full twelve months she is freed as a resident alien and he may not marry her, protecting her ultimate autonomy; and he notes that Tamar was born of this very first permitted relation, grounding the law in a concrete biblical narrative.
Sefer Chasidim 380 draws the broader moral principle: the Torah permits the yefas toar precisely because without such a concession the soldier would sin with her in a completely forbidden way — and the author extends this logic to other situations where the Torah permits something that might otherwise seem questionable in order to forestall a graver violation, concluding that it is better not to prohibit what a person cannot withstand.
The Kli Yakar (Devarim 21:11–14) introduces a moral irony in the very word לְךָ — "for yourself": this captive, likely brought to the battlefield for immoral purposes, is someone the righteous man should reject outright, and if he nonetheless desires her, the Torah limits the benefit to himself alone and not to his descendants, for what appears to him as an advantage will prove to be only an illusory one.
The Or HaChaim offers a mystical moral reframing of the desire itself: Or HaChaim (Devarim 21:11) reads the soldier's desire as something to be redirected — the longing stirred by the evil inclination can be clothed in her and transformed into enduring spiritual benefit for her, while אור החיים, דברים כא יא develops this further, suggesting that a soldier engaged in a mitzvah-mission may perceive in the captive woman a holy soul trapped within impurity, and that his desire is actually a recognition of that hidden soul — so that the taking itself, properly conducted, becomes an act of spiritual redemption.
Finally, the Sefat Emet (Devarim, Ki Teitzei 5631) reads the entire opening verse — "when you go out to battle your enemy" — as an allegory for the internal battle against the evil inclination itself, suggesting that the moral drama of the yefas toar is also a map of the soul's own struggle, in which every victory over desire is given to a person only through divine assistance.