Scarcely had he come ----- it started raining.

Answer: 
when
Scarcely had he come ----- it started raining.