We introduce the method of topological quantization for gravitational fields in a systematic manner. First we show that any vacuum solution of Einstein's equations can be represented in a principal fiber bundle with a connection that takes values in the Lie algebra of the Lorentz group. This result is generalized to include the case of gauge matter fields in multiple principal fiber bundles. We present several examples of gravitational configurations that include a gravitomagnetic monopole in linearized gravity, the C-energy of cylindrically symmetric fields, the Reissner-Nordstrom and the Kerr-Newman black holes. As a result of the application of the topological quantization procedure, in all the analyzed examples we obtain conditions implying that the parameters entering the metric in each case satisfy certain discretization relationships. (C) 2005 American Institute of Physics.