Sanjurjo became one of the first generals appointed to the command of the Spanish Republican Army. His sympathies, however, remained with the monarchist cause. When he clashed with Prime Minister Manuel Azaña over the military reforms, he was replaced by General Miguel Cabanellas. He was demoted to chief of the customs officers in 1932 as a result of the events of Castilblanco and Arnedo involving the Civil Guard. His confrontation with the ministry, Azaña's military reforms, and the grants of regional autonomy to Catalonia and the Basque Country, led Sanjurjo to plot a rebellion with some Carlists under Manuel Fal Conde, Tomás Domínguez Arévalo, and other military officers. This rebellion, which was known as the Sanjurjada, was proclaimed in Seville on 10 August 1932. Sanjurjo asserted that the rebellion was only against the current ministry and not against the Republic. It achieved initial success in Seville but absolute failure in Madrid. Sanjurjo attempted to flee to Portugal, but in Huelva he decided to give himself up.