Victor Sanchez del Amo has been sacked as Malaga head coach after an explicit video of him emerged on social media.
The 43-year-old was suspended by the Segunda Division club on Tuesday pending an investigation.
Malaga on Saturday announced they attempted to reach an agreement for a "friendly separation" with Victor, but fired him on disciplinary grounds after that was not possible.
Sergio Pellicer steps up to take charge of the first team while the club make a decision on a permanent successor to Victor.
A club statement said: "MCF has used best endeavours to attempt to resolve the situation amicably through intense negotiations with Víctor Sanchez del Amo.
"However, despite the ongoing and incessant efforts undertaken by the club, it has not been possible to reach a friendly separation.
"As such, MCF has made the decision to dismiss Víctor Sanchez del Amo due to disciplinary reasons, in accordance with the applicable regulations.
"MCF has made the decision, taking into account the serious damage caused to the institution by the recent events, aiming to minimise the impact on the team and the entire MCF organisation.
"Until a new coach is named, Sergio Pellicer will act as first team coach."
Prior to Victor's dismissal, Royal Spanish Football Federation (RFEF) president Luis Rubiales vowed to offer him a job should he get sacked.
"I had not been on Twitter for two months until the Victor Sanchez del Amo news," he told El Larguero.
"I respect Malaga, but what they have [reportedly] done is a crime. If he loses work, I will offer him to come [to RFEF].
"I will talk to [RFEF sporting director, Jose Francisco] Molina and we will look for a professional job for him in the Federation. We will have open doors."
Malaga are currently 16th in Spain's second division with the club without a win in their past four matches in all competitions.
They next face Ponferradina in the league on Tuesday as they look to put recent off-field controversy behind them with a strong performance on the pitch.