SPAIN has attempted to take formal direct control of Catalonia and fired the newly independent republic's government.

The unprecedented action comes a day after lawmakers passed a declaration of independence.

But there was no immediate sign if top Catalan officials were intending to obey or if they would resist the sacking and prolong a month-long stand-off with central authorities.

Beyond any possible resistance from those officials, it is unclear how Rajoy's government in Madrid will be able to exert its control at lower levels of Catalonia's vast administration.

Catalonia had secured the ability to govern itself in many areas, including education, health and policing, since democracy returned to Spain following the death of dictator General Francisco Franco in 1975.

Some among Catalonia's roughly 200,000 civil servants have said they will refuse to obey orders from Madrid. They risk being punished or even fired under the special powers granted to central authorities by the nation's Senate on Friday.

The move follows one of the most tumultuous days in the country's recent history, as the national parliament in Madrid approved unprecedented constitutional measures to halt the independence drive by the Catalan parliament in Barcelona.

Spain made the takeover official by publishing special measures online early on Saturday in the country's gazette.

Spanish Prime Minister Mariano Rajoy, who technically replaces Catalan President Carles Puigdemont as the top decision-maker in the northeastern region, has also dissolved the Catalan parliament and called a new regional election to be held on December 21.

However, polls suggest pro-independence parties would likely maintain their advantage in parliamentary seats.

Rajoy said the declaration of independence "not only goes against the law but is a criminal act".

His comments were met late on Friday with jeers and whistles of disapproval in Barcelona, the main city in Catalonia, where thousands had gathered to toast the independence declaration.

Puigdemont and the 12 members of the Catalan Cabinet now will no longer be paid and could be charged with usurping others' functions if they refuse to obey.

The Catalan Cabinet met yesterday but did not make any public appearances or offer statements following Rajoy's announcement of the planned government takeover. Spanish prosecutors say that top Catalan officials could face rebellion charges as soon as Monday.

Vice president Soraya Saenz de Santamaria will be Rajoy's key player in attempting to run Catalonia until the December 21 election.

She will co-ordinate other ministries that take over functions of Catalonia's departments, including finances and security, and appoint officials to implement orders from Madrid.

In one of the first moves, Spain's Interior Ministry published an order to demote Josep Lluis Trapero from his position as head of the regional Mossos d'Esquadra police in Catalonia. He will be allowed to remain as commissar.

Trapero became a controversial figure as the public face of the police response in mid-August to deadly extremists' attacks in and near Barcelona. He was praised for effectiveness but also criticised for coordination problems with other national police forces.

Spain's National Court is also investigating him as part of a sedition probe related to the October 1 independence referendum, when the regional police were seen as acting passively - not aggressively - to halt the vote deemed illegal by a top Spanish court.

Trapero's boss, regional police director Pere Soler, said in a statement that he accepted his firing by central authorities in Madrid.