Scabies can remain contagious for several weeks after treatment because eggs laid by the mites may hatch. It’s essential to continue taking precautions during this period to prevent spreading the infestation.