Relapse

How do you deal with relapse? I relapsed with self harm and am having a hard time dealing with it. Has anyone gone through anything similar with relapse? How did you get through it?