How can you fix a poor relationship and turn it back into a good friendship?

Let the other person know everything he did wrong.

Start by apologizing for the things you did wrong.

Insist on an apology from the other person.

Decide in your head that the problem is fixed.