They fought for freedom.

Literal

They [topic-は] freedom [purpose-のために] fought.

自由のために means 'for the sake of freedom.' 戦った means 'fought.'