A recent paper by Moore and Witten [1] explained that Ramond-Ramond fields
in type-II superstring theory have a global meaning in K-theory. In this no
te we amplify and generalize some points raised in that paper. In particula
r, we express the coupling of the Ramond-Ramond fields to D-branes in a K-t
heoretic framework and show that the anomaly in this coupling exactly cance
ls the anomaly from the fermions on the brane, both in type IIA and type II
B.