The captain said, thatt the soldiers would guard that bridge.
When transferring a sentence to the indirect speech you change the pronouns respectively and change tenses:
Present tenses change to Past tenses,
Past tenses change to Past Perfect tenses
Future tenses change to would