President Pedro Castillo was arrested on a charge of rebellion Wednesday after trying to dissolve Congress and take unilateral control of the government.