Magalat led a revolt in 1596 in Cagayan against Spanish rule due to resentment over tribute payments and forced labor, but his revolt was defeated when he was killed by his own men who were promised a reward by the Spanish. After being imprisoned and released due to priest intervention, Magalat started another rebellion but was again defeated when the governor sent troops to stop the revolt, executing several leaders while Magalat himself was killed by his own men. The death of Magalat caused the failure of the revolt and brought peace to the province.