From 1979 to 1992, except for a hiatus in 1985–1987, Gamba was the head coach of the Italy national team, and led them to a silver medal at the Summer Olympic Games in 1980, in 1984, in 1988, and in 1992. He also coached the national team at the EuroBasket seven times, winning a gold in 1983, a bronze in 1985, and a silver in 1991.