Masked men attacked the travelers and robbed them of their money.

Literal

Masked men [subject-が] travelers [object-を] attacked-and money [object-を] took.

覆面をした男達 is a relative clause: 'men who wore masks.' 襲って金を奪った chains two actions with て: attacked and robbed. A vivid narrative sentence.