It can also be used as the third person singular past tense of the verb "ser" (to be), meaning "was" or "he/she/it was".
The meaning of "foi" depends on the context of the sentence.
For example:
* Ele foi para a escola. (He went to school.)
* O tempo foi bom hoje. (The weather was good today.)