We study spin structures on compact simply-connected homogeneous pseudo-Riemannian manifolds (M = G/H, g) of a compact semisimple Lie group G. We classify flag manifolds F = G/H of a compact simple Lie group which are spin. This yields also the classification of all flag manifolds carrying an invariant metaplectic structure. Then we investigate spin structures on principal torus bundles over flag manifolds F = G/H, i.e. C-spaces, or equivalently simply-connected homogeneous complex manifolds M = G/L of a compact semisimple Lie group G. We study the topology of M and we provide a sufficient and necessary condition for the existence of an (invariant) spin structure, in terms of the Koszul form of F . We also classify all C-spaces which are fibered over an exceptional spin flag manifold and hence they are spin.2000 Mathematics Subject Classification. 53C10, 53C30, 53C50, 53D05. Keywords: spin structure, metaplectic structure, homogeneous pseudo-Riemannian manifold, flag manifold, Koszul form, C-spaceDedicated to the memory of M. Graev 1 2 DMITRI V. ALEKSEEVSKY AND IOANNIS CHRYSIKOS Our results can be read as follows. After recalling some basic material in Section 1, in Section 2 we study invariant spin structures on pseudo-Riemannian homogeneous spaces, using homogeneous fibrations. Recall that given a smooth fibre bundle π : E → B with connected fibre F , the tangent bundle T F of F is stably equivalent to i * (T E), where i : F ֒→ E is the inclusion map (cf. [Sin]). Evaluating this result at the level of characteristic classes, one can treat the existence of a spin structure on the total space E in terms of Stiefel-Whitney classes of B and F , in the spirit of the theory developed by Borel and Hirzebruch [BoHi]. We apply these considerations for fibrations induced by a tower of closed connected Lie subgroups L ⊂ H ⊂ G (Proposition 2.6) and we describe sufficient and necessary conditions for the existence of a spin structure on the associated total space (Corollary 2.7, see also [GGO]). Next we apply these results in several particular cases. For example, in Section 3 we classify spin and metaplectic structures on compact homogeneous Kähler manifolds of a compact connected semisimple Lie group G, i.e. (generalized) flag manifolds.Generalized flag manifolds are homogeneous spaces of the form G/H, where H is the centralizer of torus in G. Here, we explain how the existence and classification of invariant spin or metaplectic structures can be treated in term of representation theory (painted Dynkin diagrams) and provide a criterion in terms of the so-called Koszul numbers (Proposition 3.12). These are the integer coordinates of the invariant Chern form (which represent the first Chern class of of an invariant complex structure J of F = G/H), with respect to the fundamental weights. By applying an algorithm given in [AℓP] (slightly revised), we compute the Koszul numbers for any flag manifold corresponding to a classical Lie group and provide necessary and sufficient conditions for the existence of a spin or metaplecti...