Complex sentence: Miguel Primo de Rivera came to power in a military coup in 1923 and ran Spain as a military dictatorship.
Split into simpler sentences: Miguel Primo de Rivera came to power in a military coup in 1923. He ran Spain as a military dictatorship.