としたがだめだった

tried to ... but failed

→ と
phrase Rare #32,213
tried to ... but failed Follows a verb in the volitional form, such as 開けようとしたがだめだった (tried to open it, but failed). だめだった means that the attempt did not work or was unsuccessful.
JA: 何度も説明しようとしたがだめだった。
EN: I tried to explain it many times, but I failed.

それを開けようとしたがだめだった

I tried to open it, but I couldn't.

彼は何度かたばこをやめようとしたがだめだった

He tried to quit smoking several times, but he couldn't.

その夫婦は自分たち二人の問題を解決しようとしたがだめだった

The couple tried to resolve their problems on their own, but they couldn’t.

彼らはその証人買収しようとしたがだめだった

They tried to bribe the witness, but they failed.

彼女は戸を開けようとしたがだめだった

She tried to open the door, but she couldn't.