Spanish rule eventually provoked an independence movement and occasional rebellions that were harshly suppressed .