Ответ:

By the time we arrived, the train had already left.