* when: Subordinating conjunction - It introduces a dependent clause (a clause that cannot stand alone as a sentence).
* it: Pronoun - Represents the subject of the verb "rains."
* rains: Verb - Indicates the action of the sentence.
The entire phrase "when it rains" is a dependent clause. It relies on an independent clause to form a complete sentence. For example:
* When it rains, I stay inside. ("When it rains" is the dependent clause, and "I stay inside" is the independent clause.)