が鳴ると

when … rings

→ が
phrase Rare #34,711
when … rings Follows the thing that makes a sound; と marks what happens when it sounds.
JA: チャイムが鳴ると、みんな教室に戻ります。
EN: When the bell rings, everyone returns to the classroom.

鐘が鳴るとすぐ我々は起き上がった。

As soon as the bell rang, we got up.

笛が鳴るとレースが始まります。

When the whistle blows, the race begins.

雷が鳴ると、雨が降り始めた。

When thunder sounded, it started to rain.