Almeria came from behind to beat Espanyol 2-1 in Barcelona in La Liga on Sunday.
The result means that Almeria are still in the bottom three, but are now just two points from safety. Espanyol, meanwhile, have dropped into 11th position.
The first real chance of the match came to the visitors after 11 minutes, but Ramon Azeez could only fire his effort high and wide of the crossbar following bright work from Rodri.
Jhon Cordoba came close for Espanyol after 19 minutes following a cross from Simao, but his header was wide of the post as both sides struggled to create clear opportunities.
Espanyol had the lead just before the interval, however, when Christian Stuani headed a Sergio Garcia cross into the bottom corner.
Stuani's jubilation turned to despair in the early stages of the second half, however, as the forward was handed his second yellow card for a late challenge on Fran Velez.
Almeria made use of their one-man advantage 20 minutes from time when Velez headed an equaliser, before on-loan Liverpool midfielder Suso found the top corner with a free kick to leave the away side with a 2-1 lead after 73 minutes.
Espanyol pushed for a leveller in the latter stages, but could not make the breakthrough and their frustration boiled over once more in stoppage time when David Lopez was dismissed to leave the home side with nine men.