Fugitive Andrew Moran was captured in a dramatic raid at a luxury villa in the Costa Blanca, police said.
An elite team of armed officers swooped on the robber while he was relaxing by a swimming pool.
They recovered two handguns, 60 rounds of ammunition and a machete at the property.
Moran was on the most wanted list for Crimestoppers' Operation Captura campaign.
More top news
Malaysia Airlines' website has been hacked by a group proclaiming support for the so-called Islamic State.
Prince Philip, the Duke of Edinburgh, has been awarded a knighthood by Australia.
A "crippling" and "potentially historic" blizzard is set to hit the US, possibly leaving up to 30 inches of snow.