When the soldiers crucified Jesus, they took his clothes, dividing them into four shares, one for each of them, with the undergarment remaining. This garment was seamless, woven in one piece from top to bottom.
“Let’s not tear it,” they said to one another. “Let’s decide by lot who will get it.”
This happened that the scripture might be fulfilled that said,
“They divided my clothes among them
and cast lots for my garment.”
So this is what the soldiers did.