If we confess our sins, he is faithful and righteous to forgive us the sins, and to cleanse us from all unrighteousness.

 It is John's insistence that, when a man has sinned, excuses and self-justifications are irrelevant. The only thing which will meet the situation is humble and penitent confession to God and, if need be, to men. 