Read the sentence.

When they arrived at the beach, the students who had never seen the ocean before ran toward the shore.

Which part of the sentence is an adverbial dependent clause?

when they arrived at the beach
the students who had never seen
the ocean before
ran toward the shore

When they arrived at the beach