Their first measure was to take a formal loyalty oath to Ferdinand VII as legitimate King.
This refers to a situation where individuals pledged their loyalty to a specific monarch, acknowledging his legitimacy as the ruler.