Most importantly, the living are more important than the dead.
Check your scene safety, something killed that person and you want to make sure that it won't kill you as well.
I can't imagine that you will be alright, your partner just died.
Emotionally, your thinking will probably be off, take extra care because of that.
I would document what had happened in writing and take pictures, but not disturb the body as there may be an investigation.
Then I would very carefully hike out, realizing that you are going to be upset and your decision making skills
will probably not be at their best.
Take extra time, go around obstacles, don't let your grief get you into stupid situations.
If possible it might be better to ask someone not from your group to carry the message and your location out to the authorities, as they will be less emotionally affected by the death and would probably make better decisions because of that.
Then when the authorities come in, you can walk out with them.
outdoors.stackexchange.com/users/8794/Charlie Brumbaugh
The other answers seem good, however there's an extremely important step they have missed.
Make sure the person is dead!
(And no I don't mean by stabbing them).
Some injuries are clearly fatal but it's entirely possible that someone who is ill/ poisoned/ injured/ hypothermic/ suffering from blood loss/etc may seem dead but actually be alive.
You need to get medical professionals on the case as fast as possible and doing so may save their life.
Even hospitals and doctors make this mistake from time to time, for example see this article .
outdoors.stackexchange.com/users/3548/Tim B
This sounds like a macabre version of one of those teambuilding exercises.
As noted above, your emotions will be going haywire and you won't think clearly.
You'll probably stay with your fallen friend for some time before you get your thoughts in order.
First priority is your safety Second priority is immediate first aid Third priority is communication (if you have a communication method), seek and follow further advice from the authorities) Fourth priority is to continue to administer first aid until you're absolutely sure of the situation If your friend is undoubtedly dead, then your own safety becomes paramount.
If you can't safely get to the body, then you can only leave it in situ until you get the authorities there (by whatever means).
In the unlikely event the body is in the open and readily to hand, then practically speaking, protecting the dignity of your friend (and family) is most important.
If you have no means of contacting the authorities from where you are and have to travel some distance to gain help/communication: I'd empty his/her back-pack and insert the body's head/shoulders as far as they'll go.
Secure the opening as tight as possible with his/her belt (if predators get to the body, they'll start with the more accessible parts).
You can then cover the remains with branches/foliage/rocks/whatever in an effort to protect from predation.
Protecting the head/upper chest also preserves any evidence for any subsequent medical investigation.
Mark
the location of the cairn as clearly as possible (use a nearby tree or rock that won't be dislodged by predators).
Use the remaining contents of the back-pack to help mark your route back to the closest, easiest, route to a communications point (where you get a cell signal or people).
Don't forget to mark your exact location on a map before you set off.
If you have communication equipment: Obviously, use the equipment and stick with the body - direct the authorities to you unless instructed otherwise.
Note:
I have no experience or training to back this up.
It just seems appropriate.
outdoors.stackexchange.com/users/None/
Stay with the body until authorities arrive.
If there are no other people around: call the police using your mobile phone (near civilisation) or satellite phone (far from civilisation).
If you don't have a satellite phone, you might consider activating your Personal Locator Beacon (PLB).
I would not want to hike out leaving the body of a hiking partner behind.
Firstly, I would be severely distressed.
Secondly, I would want to guard the body against animals.
If you are in a frequented area, ask somebody to carry the message for you, as Charlie says in his answer .
outdoors.stackexchange.com/users/566/gerrit
One problem is going to be predators, scavengers, and insects eating the body.
In the extreme they might drag the body off and you cannot find it.
They are dead - there is no a big hurry.
Preserve the body for the funeral is an important task.
You are not likely to have a full size shovel to bury them.
I would wrap them in sleeping bags, clothes, tent, tent poles, ... ropes.
Once they're all wrapped up, you could put them in the shade.
If you had climbing gear could hang them from a tree by harness, feet, or under arms.
Unless they weigh less than or you had a pulley system then could not do it.
If on a glacier then bury them in the snow.
Alone you can not move a body very far.
A live body you might try to extract if you had
4+
but a dead body the common advice is to leave and go for a rescue party.
outdoors.stackexchange.com/users/6728/paparazzo
I am hiking in the wilderness, a round trip to civilization and back is at least 24 hours.   I know where I am and I can return to the same spot.  If my hiking partner dies, how can/should I protect the body while I go to get the authorities?  I want to protect my partner's body while I am gone, what can/should I do?
How to protect a body in the wilderness?
outdoors.stackexchange.com
<backcountry><wilderness>
outdoors.stackexchange.com/questions/15332
outdoors.stackexchange.com/users/4079/James Jenkins
Firstly, make sure the person is dead!  If your friend is undoubtedly dead, then your own safety becomes paramount. One problem is going to be predators, scavengers, and insects eating the body, so in the unlikely event the body is in the open and readily to hand, then practically speaking, protecting the dignity of your friend (and family) is most important.  Wrap them in sleeping bags, clothes, tent, tent poles, ropes, etc. You can then cover the remains with branches/foliage/rocks/whatever in an effort to protect from predation.  Protecting the head/upper chest also preserves any evidence for any subsequent medical investigation.  Document what had happened in writing and take pictures, but not disturb the body as there may be an investigation. For a dead body the common advice is to leave and go for a rescue party. Ensure the person is dead, if not seek medical assistance. You should cover the body and call the authorities, hiking out if you are unable to reach them from where you are.
You should cover the body. Ensure the person is dead, call for medical professionals if they are alive. Call the authorities, if you have no way of reaching them then hike out.