Past Perfect Tense explanation:
Explanation: The Past Perfect tense is used to describe an action that happened before another action in the past. It is formed with 'had' + the past participle of the verb.
Original Sentence:
I turned on the light. It got dark.
Combined Sentence:
When I turned on the light, it had already gotten dark.