This is the 2998th most frequent Polish word.
okazją
"Okazją" means "opportunity" or "bargain" in English, depending on context.
In this sentence, 'okazją' is used in its instrumental case form following the verb 'była', indicating 'it was an opportunity'.
To była świetna okazją do nauki.
It was a great opportunity to learn.
Here, 'okazją' is again in the instrumental case because it follows 'z', which requires the instrumental case.
Skorzystałem z tej okazją, aby pomóc innym.
I took advantage of this opportunity to help others.
The word 'okazją' is introduced here as an example of spoken colloquial use, where it might appear in a non-standard form to stress informality or enthusiasm.