The Greek word for "guard" (phroureo) is a military term referring to a garrison of soldiers standing watch around a citadel. When anxiety threatens to breach the gates of our mind, God does not merely offer tranquil feelings; He posts His supernatural peace as a heavenly guard over our thoughts.
The prerequisite is honest, grateful prayer. Paul does not say "suppress your fears," but rather "turn your worries into petitions with thanksgiving." Gratitude shifts our gaze from the storm to the Sovereign.