You have 3 revive "tomes" or i dont know how their called and when you die, then you will be automatically be revived after a few seconds at the spot where you died.
If your friend doesnt have any revives left, then i think you can give him some of your own by clicking on Alliances or Resources on the top left of the screen and there you can exchange revives.