It was raining heavily when he woke up.
It was raining heavily when I woke up last night.
The sentence uses two different tenses: Past continuous tense and simple past tense.