 Gerardo had his most successfully period at Málaga CF, playing five seasons for a side that had four consecutive mid-table positions and also helping them win the 2002 UEFA Intertoto Cup.In 2005–06 the team finished last, with the player scoring twice (in two 1–2 defeats).For 2006–07, Gerardo joined Real Sociedad, who would also be relegated at the end of the campaign.