go to great lengthsgo to great lengths (to do something)
to try very hard to achieve something.
I went to great lengths to explain the situation to him but he still didn't seem to understand.
go to great lengths (to do something)
To put in a lot of effort, energy, or work to achieve something. We went to great lengths to ensure that this film was historically accurate.I appreciate that the tutor went to great lengths to make sure I understood the assignment
go to great lengths (to do something)
and go to any lengths (to do something)
to work very hard to accomplish something; to expend great efforts in trying to do something. I went to great lengths to explain to him that he was not in any trouble.