、。
The sheepdog leads the flock of sheep to the pasture.
Literal
Sheep-herding-dog [subject-が], sheep [attributive-の] flock [object-を] pasture [to-へ] take-[go-away-ていく].
牧羊犬 ('sheep-herding dog' = sheepdog) is a descriptive compound. へ marks the direction toward the pasture — the destination particle, slightly more focused on 'direction toward' than the goal-oriented に. 連れていく ('take [someone/something] away with one') combines 連れる ('accompany') with ていく (go away from speaker). Distinct from 連れてくる (which would bring to the speaker's location).