したことを

what ... did

→ 為る
phrase Uncommon #15,222
what ... did Turns an action into “what someone did” or “the thing someone did”; を marks it as the object of the following verb.
JA: 昨日したことを覚えていますか。
EN: Do you remember what you did yesterday?

私は手紙を投函したことを覚えていない。

I don't remember mailing the letter.

トムはジョンのしたことをメアリーに話すべきではなかった。

Tom shouldn't have told Mary what John had done.

あなたが私にしたことを私はもう娘にする気はないです

I will never do to my daughter what you did to me.

— エブリシング・エブリウェア・オール・アット・ワンス (2022)

今は彼が無事にー国外へ脱出したことを祈るばかりです

All I can do now is pray that he made it out of the country safely.

— The Wind Rises (2013)

彼女があなたにしたことを彼らに話してください。

Tell them what she did to you.

— ウィキッド 永遠の約束 (2025)

私は、あなたがしたことを誰にも言わなかった。

I didn't tell anyone what you did.

そのミスをしたことをすまないと思った。

I was sorry for making that mistake.

トムは、メアリーが運転免許を取得したことを、信じてないと言っていた。

Tom said he didn't believe that Mary had gotten her driver's license.

したことを言い訳するな。

Don’t make excuses for what you’ve done.

私は彼のしたことを許せない。

I can't forgive what he did.

彼女に失礼なことをしたことを謝るべきだ。

You should apologize to her for being rude.

誰も自分が目にしたことを信じられなかった。

No one could believe what they had seen.

自分の船を自分で指揮したことを、彼女が実際に褒めてくれたのは初めてだった。

It was the first time she’d actually praised me for captaining my own ship.

彼女は自分がしたことを反省した。

She regretted what she had done.

この件でご迷惑をおかけしたことをお詫びします。

I apologize for the inconvenience this has caused.