We extend the basic theory concerning the cycle space of a finite graph to infinite locally finite graphs, using as infinite cycles the homeomorphic images of the unit circle in the graph compactified by its ends. It turns out that the spanning trees allowing such a generalization are precisely the end-faithful spanning trees.