Brazilian footballer Dani Alves will remain in jail on remand as he faces investigation over alleged sexual assault, a Spanish court has ruled.

A police car is seen next to journalists informing outside the prison in San Esteve Sesrovires, 40 km from Barcelona, where Brazilian football player Dani Alves is jailed, on February 21, 2023. - Former Barcelona defender Dani Alves will remain in preventative custody pending his trial for alleged rape as he is considered a high flight risk, the Provincial Court of Barcelona decided today. (Photo by Josep LAGO / AFP) (Photo by JOSEP LAGO/AFP via Getty Images)
A police car is seen next to journalists informing outside the prison in San Esteve Sesrovires, 40 km from Barcelona, where Brazilian football player Dani Alves is jailed, on February 21, 2023. – Former Barcelona defender Dani Alves will remain in preventative custody pending his trial for alleged rape as he is considered a high flight risk, the Provincial Court of Barcelona decided today. (Photo by Josep LAGO / AFP) (Photo by JOSEP LAGO/AFP via Getty Images)

Alves, 39, had presented an appeal on Jan. 30 for his release from pre-trial detention after being jailed on Jan. 20.

However, the judge denied bail based on the fact that Alves is a potential flight risk due to his financial means and Brazilian nationality.

Brazil does not have extradition agreements with Spain.

Alves is accused of sexually assaulting a woman in a nightclub in Barcelona on Dec. 30, 2022.

The initial investigation began in January but Alves was only arrested after a hearing with the alleged victim in late January.

The judge based her decision on the biological results obtained from the victim, surveillance footage from the nightclub, as well as the contradictory statements given by Alves.

He denies any wrongdoing.

Alves had returned to Spain from Mexico where he was playing for Pumas UNAM, but the club has since terminated his contract with them.

Alves has played for several top European clubs such as Barcelona, Juventus, and Paris Saint-Germain.

He was a key part of Barca’s golden years, playing on the team’s right flank with Lionel Messi between 2008 and 2016.

During this period, Alves won the Champions League three times with the Catalan club. He briefly rejoined Barcelona last season before playing at the World Cup with Brazil in Qatar.

The investigation is ongoing, and no date has been set for a trial.