had left
Llegando a la estación, encontré a mi tren que se había marchado.
Arriving at the station, I found my train had already left.
Sí, pero ya se había marchado cuando salí con mi basura.
Yes, but they’d already left by the time I went out with my rubbish.
— Ghost in the Shell (1995)
Su padre real, que se había marchado antes de que él naciera.
His real father, who had left before he was born.
— It's Such a Beautiful Day (2012)
Pensé que Tom se había marchado con María.
I thought Tom had left with Maria.