In the face of something

Meaning: Despite or while confronted by something difficult.

Example: The community remained united in the face of adversity.