Sentence:  They had had to <WSD>work</WSD> on very simple foundations and had not dared to give rein to impulses . 
Meaning of the word marked with <WSD> tags:  to exert effort in order to do, make, or perform something