Lopetegui has been in charge since the start of the season but has overseen a terrible start to the league which sees them languish at the ninth spot.
Real Madrid Castilla coach and former player Santiago Solari will take charge of the team for the time being.
Real Madrid's statement says the decision has been taken "in a bid to change the run of results that the team was in, with all the team's season objectives still possible."