Factbox: What's next for Catalonia and would-be leader Puigdemont?

Former Catalan leader Carles Puigdemont attends a meeting with his party 'Junts per Catalunya' parliament group in Brussels, Belgium January 12, 2018. REUTERS/Francois Lenoir

MADRID (Reuters) - Catalonia's new parliament meets for the first time on Wednesday, a step towards choosing a president for Spain's wealthiest region, a daunting challenge when the top candidate has fled abroad and other potentials are in jail.

Here is a look at what lies ahead for Catalonia, a region which has been ruled by Madrid for the past three months after it held an illegal independence referendum:

* CAN PUIGDEMONT RULE CATALONIA?

Carles Puigdemont, the 55-year old ex-Catalonia chief sacked by Spanish Prime Minister Mariano Rajoy for his role in organising the Oct. 1 independence referendum, is the separatists' candidate to rule Catalonia.

In theory, that should have been easy: the Dec. 21 regional election called by Rajoy in a bid to weaken the independence drive backfired and gave nationalists an absolute majority.

But Puigdemont is targeted by an arrest warrant over leading the secession bid. He is now in Brussels and faces arrest and potentially decades in jail the minute he steps foot in Spain.

Puigdemont and his allies have touted ruling via proxy or by videolink from Belgium.

But, Rajoy said Madrid would simply not recognise such an in-absentia regional government and would continue its direct rule of Catalonia in that case. Catalonia's parliament's own legal advisers said such a government would be against the law.

* IF NOT PUIGDEMONT, WHO ELSE?

The head of ally ERC, Oriol Junqueras, the other main separatist leader, is in jail for his role in Catalonia's secession bid.

The problem for the nationalists, if they don't manage to get one of them elected, is that there are no obvious replacement candidates and agreeing on someone else could be a lengthy and difficult process.

Another option would be for those jailed or fugitive deputies to forfeit their seats and hand them to other party members.

* WHO DECIDES IF PUIGDEMONT CAN BE PRESIDENTIAL CANDIDATE?

On Wednesday, lawmakers will be sworn in and elect their house's president and the assembly's committee.

The committee has the ultimate authority to decide whether Puigdemont is allowed to present himself as presidential candidate from Brussels, a move Madrid says it will contest in the courts.

Since separatists have a majority in parliament they are likely to dominate the committee.

* POTENTIAL FOR PROTRACTED CRISIS

After Wednesday, more voting will be needed for Catalonia's parliament to choose the region's government and its president.

That could take up to two months if no candidate gets an absolute majority of votes.

If parties agree on a regional leader and it's Puigdemont while he is still abroad, Madrid would declare the vote null and keep its control over the region.

If they fail to agree on Puigdemont or another candidate in that time frame, it's back to square one with fresh regional elections.

(Reporting by Ingrid Melander; Editing by Sonya Dowsett/Jeremy Gaunt)