The Welshman held a 27-second lead going into the final stage yesterday and held on to secure a comfortable win in the end.
Portugal’s best-placed rider was Tiago Machado, who came in third, one minute and 11 seconds behind Geraint Thomas.
The win came as Team Sky’s Chris Froome won the Ruta del Sol just across the border in Andalusia.