The Mayor of Casterbridge by Thomas Hardy. It's old and long but if you want a story where a man does everything to pull himself up from the depths and achieve success and then his past makes his life and the life of everyone else around him disintegrate anyway, this is the one for you.
The final boss battle is beyween two nobodies in some empty field at the literal end of time
"I existed"
The End