Use the Blueprint Desk to mark a site for the grave, then dig it with your shovel.
Put the corpse in the grave. Bury it, and mark it with a sign. Later you can unlock better headstones and fences.