It caused massive power outages across Luzon, toppled power lines, uprooted trees and destroyed thousands of homes.