He spent most of his career in Spain, representing Elche and Málaga and competing in La Liga with the latter club. In the summer of 2014 he signed for Manchester City, helping them win the 2016 League Cup.