We characterize Valdivia compacta K in terms of C(K) endowed with a topology introduced by M.Valdivia. This generalizes R.Pol's characterization of Corson compacta.