The Amplified Classified editions adds a few more salient details, Let every person be loyally subject to the governing (civil) authorities. For there is no authority except from God [by His permission, His sanction], and those that exist do so by God's appointment. Therefore he who resists and sets himself up against the authorities resists what God has appointed and arranged [in divine order]. And those who resist will bring down judgment upon themselves [receiving the penalty due them].
Romans 13:1-2 is encapsulated within Paul's larger exhortation, encompassing Romans 12 through 15, explaining how God's called-out saints should live in the world, especially in relation to others beyond their own families as well as their spiritual siblings.
After teaching about love, humility, and peace in chapter 12, Paul turns to the follower of Christ's relationship with the civil government.
During the time of Jesus Christ and the apostle Paul, the Roman government was primarily under the rule of Emperor Augustus and his successors, such as Tiberius (reigning from 14-37 AD), Caligula (reigning from 37-41 AD), Claudius (reigning from 41‒53 AD), and Nero (reigning from 54‒68 AD), probably the most cruel and evil of all the Caesars.
Augustus came to power in 27 BC, significantly expanding the Roman Empire, including Judea as a province, appointing Herod the Great, who played a crucial role in the life of Jesus, including the events surrounding His birth and crucifixion. Historians have characterized the Roman Empire as a centralized government, establishing extensive road networks, and having a common language which thankfully facilitated the rapid spread of Christianity and missionary activities of the apostle Paul.
Paul understood that the Roman government was an extremely powerful, and sometimes evil oppressive system. Yet, Paul still calls believers to recognize the legitimacy of governmental authority within God's sovereign order.