se habían ido

they had left

→ se
phrase Rare #30,228
they had left Used for something a group had already left or gone away before another past event. The pronoun se is part of the verb irse, meaning “to leave” or “to go away.”
SP: Cuando llegamos al restaurante, mis amigos ya se habían ido.
EN: When we got to the restaurant, my friends had already left.

Cuando llegó la policía los ladrones ya se habían ido de la casa.

By the time the police arrived, the thieves had already left the house.

Cuando llegamos, ya se habían ido todos de la fiesta.

When we arrived, everyone had already left the party.

Ya se habían ido todos cuando llegué.

Everyone had already left when I arrived.

No, cuando llegué ya se habían ido.

No, they had already left when I arrived.

— Cuentos de Tokio (1953)

Los niños se habían ido cuando llegué a casa.

The children had left when I got home.

Mis padres se habían ido antes de que yo llegara.

My parents had left before I arrived.

Figaro nos invitó a su boda, pero cuando llegamos, todos ya se habían ido.

Figaro invited us to his wedding, but when we arrived, everyone had already left.

El incendio se inició después que los trabajadores se habían ido a casa.

The fire started after the workers had gone home.

Se habían ido como una semana antes.

They had left about a week before.

Todos los niños se habían ido a la cama antes de anochecer.

All the children had gone to bed before nightfall.

Todos se habían ido y él se quedó allí.

Everyone had left, and he stayed there.