Breakdown of A batalha foi decidida por um herói.
ser
to be
um
a / an / some (all forms)
decidir
to decide
por
through / by / for / because of
Questions & Answers about A batalha foi decidida por um herói.
Wait, isn't foi the past tense of ir (to go)? Why does it mean "was" here?
The verbs ser (to be) and ir (to go) share the exact same forms in the simple past (Pretérito Perfeito). In this sentence, foi comes from ser. You can tell because it is followed by the past participle decidida to form the passive voice, meaning "was decided".
Why does the word decidida end in an -a instead of the usual -o?
In the analytic passive voice (ser + past participle), the past participle acts like an adjective and must agree with the subject in gender and number. Since the subject, A batalha, is feminine and singular, the past participle decidido becomes decidida.
Could I use de instead of por to mean "by" a hero?
No, when you are expressing who performs the action in a passive sentence (the agent), you must use the preposition por. You will often see it combined with definite articles (like pelo or pela), but here it stays as just por because it is followed by the indefinite article um.
How would this sentence change if we made it active instead of passive?