@Former Member posted:
They were fighting, and I tried to calm them down. I did what I could to stop the fight, but they wouldn't listen.
Yes, the structure in bold is correct, the meaning being: I had the ability to stop the fight, and I exercised that ability.
Similarly, you can say in the present:
- I do / am doing what I can.