In the context of (something)

In the circumstances under which something has happened.

In the context of his job I could understand what my friend was saying.