Edited sentence: Castanheira also served as club co-captain during his stay.Castanheira joined Sporting Clube de Braga in 1996–97, and would remain there for over 11 seasons.Castanheira was an important part of the squad that finished in fourth place in the 2005-06 league, nearly missing out in the UEFA Champions League, and progressed through to the last 16-round in the following season's UEFA Cup.He returned to youth club Grupo Desportivo de Chaves, after 13 years, with it now in the third category of Portuguese football.His Braga career was a steady one, as he was always counted on by several team coaches; he was influential when Hungarian international Miklos Feher joined the club in 2000–01, providing 10 assists as Feher netted 14 goals in 26 appearances.In 2008-09, Castanheira was rarely used by Leixões, and was released at its closure.In January 2008, however, he was loaned to first division promotees Leixões SC, until the end of the season.The move was made permanent subsequently, as the Matosinhos outfit retained its top flight status in the very last matchday