Sentence:  It was simply his necessity to <WSD>confess</WSD> which had made him write and keep this thing . 
Meaning of the word marked with <WSD> tags:  confess to a punishable or reprehensible deed, usually under pressure