After this, Joseph of Arimathea, who was a disciple of Jesus-but secretly because of his fear of the Jews-asked Pilate that he might remove Jesus' body. Pilate gave him permission, so he came and took His body away.
References for John 19:38
Nicodemus (who had previously come to Him at night) also came, bringing a mixture of about 75 pounds = 12 ounces of myrrh and aloes.
References for John 19:39
Then they took Jesus' body and wrapped it in linen cloths with the aromatic spices, according to the burial custom of the Jews.
There was a garden in the place where He was crucified. A new tomb was in the garden; no one had yet been placed in it.
They placed Jesus there because of the Jewish preparation and since the tomb was nearby.