Some vessels need two separate things done to them: kashering, because of what they absorbed, and tevilah, because they came from a non-Jew. New metal vessels for anyone stringent to kasher them, and any vessel bought second-hand that was used with forbidden food, fall into this.
They are not the same obligation and they do not have the same reason — so the order turns out to matter.
The rule
Kasher first, immerse afterwards. Libun or hagalah, and then tevilah.
The Shulchan Aruch states it directly: vessels taken from a non-Jew that were used with hot food are given hagalah and then immersed.
Why, in one image
The reasoning is one of the more memorable in this area.
Tevilah brings a vessel into the sanctity of Jewish food. If it still needs kashering — if it is still carrying what it absorbed — how can it enter that sanctity? The comparison drawn is to someone immersing in a mikveh while holding a source of impurity in his hand. The immersion and the thing being held work against each other.
The order is also read out of the verse dealing with vessels taken in war: pass them through fire, and afterwards it shall be pure. Fire first, then purity.
If you did it the other way round
A real dispute, and it is worth knowing where you stand rather than guessing.
One view: the tevilah counts. This immersion is not about impurity at all — even brand-new vessels require it — so the comparison to holding something impure does not apply. On this view, having immersed and then kashered, you are finished.
Another view: immerse again. Following the reasoning above, the first immersion could not take effect.
A third position splits the difference in the usual way: kasher first as the proper practice, but after the fact an immersion done first is effective.
There is also a narrower point worth having. Where the vessel is not ben yomo — it has stood unused for a day, so what it absorbed has deteriorated — all agree it may be immersed first, because there is nothing problematic being "held" at that moment.
What to do in practice
Since there is a dispute, the practice given is to immerse again after the kashering, without a bracha. That satisfies the stricter view without making a blessing on an immersion that may not have been required.
Which is the standard shape of a resolution in this kind of case, and a useful pattern to recognise: do the act again, omit the blessing.
The simplest way to avoid the question is to plan the order before you start — kasher, then immerse. What applies to your vessels is a question for your rav.
Where this comes from
- Shulchan Aruch, Yoreh De'ah 121:2, with Shach
- Bamidbar 31:23 — ta'aviru ba'esh… v'taher
- Tosfos, Mordechai, Rosh, Tur and Smag citing the Ri
- Pischei Teshuva, Yoreh De'ah 121; Ben Ish Chai, Matos
- ספר הכשר כלים, פרק א