The Belgian, who was with the Red Devils from 2017 to 2020, opened the scoring for Almeria in superb fashion.
Madrid had only just kicked off when a lapse Nacho pass was intercepted and played through to Ramazani who timed his run to perfection.
The 22-year-old former Charlton prospect collected a Lucas Robertone pass and swept in past Kepa Arrizabalaga to leave the home side shocked.
Just minutes earlier, Nacho had been on the pitch parading the Supercopa de Espana as Madrid's captian.
Los Blancos had collected the cup in Saudi Arabia, battering rivals Barcelona 4-1 thanks to a Vinicius Jr hat-trick.
read more laliga news
Osasuna star scores astonishing match-winner from the corner flag just like Roberto Carlos
Brereton Diaz marks Premier League debut in best possible way after nightmare Spain spell
But back at home, things quickly went from bad to worse as Edgar Gonzalez made it 2-0 just before half-time.
Whatever happens for the remainder of the match, Almeria will finish bottom of the table, with just six points from 20 games heading into the game, showing just how big a shock a win would be.
More to follow.