Oh no you don't. The deus ex machina is a cop-out, and almost always makes for a disappointing ending. It's seen as one of the WORST ways to end a work of fiction, actually. Imagine this. You've spent an entire book reading a fascinating and exciting story about a man fighting for his rights. He's gone up against secret organizations, assassins, and the government itself. The final part of the book comes, the climax - he's trapped on the roof of a building, government agents cornering him at the edge with a dozen guns trained on his heart, and you're ready to see him fight a final desperate battle that is sure to blow you away... but what's this? The government is saying "You fought so well, we're just going to let you go. Enjoy your freedom." And then the agents walk away and the book ends. Wouldn't that be disappointing? The whole point of a plot is change - you want to see the character change to overcome the final problem. If at the end he simply has his happy ending handed to him, you're going to be really unimpressed. So my advice - have the character overcome those impossible odds at the end of the story through his or her own efforts, and definitely stay away from the deus ex machina. ;) EDIT: Hmm, I do see your problem. Okay - would it be possible for you to pretend he died? Like, were the circumstances surrounding the death suspicious or unclear enough that you'd be able to have a dramatic chapter ending somewhere where he suddenly appears, and then in the next chapter he details how he survived? Maybe he faked his death, or maybe some coincidence happened that let him live. Without more details, I don't know how else to help you. But more advice - don't make it seem like it came out of nowhere. Try to include at least one little detail back in the death scene (if there is one) that might alert a particularly sharp-eyed reader to the fact that he's really alive. I would avoid the "all just a dream" and "twin brother" ideas, though, they're both very cliche.