The hospital was far from his village.

Literal

Hospital [topic-は] his village [from-から] far was-separated.

遠く離れていた — 離れる means 'to be separated/distant,' and ていた marks the past resultative state. から marks the starting point for the distance measurement.