~のを待つ (wait for X to happen)
grammar3 sentences
The pattern [clause]+のを待つ, 'wait for X to happen.' The nominalizer の packages the event-clause as the object of 待つ ('wait'). 子供が来るのを待つ ('wait for the child to come'), 雨がやむのを待つ ('wait for the rain to stop').