Let 𝐺 be an affine algebraic group defined over a field 𝑘 of characteristic 0. We study the derived moduli space of 𝐺-local systems on a pointed connected CW complex 𝑋 trivialized at the basepoint of 𝑋. This derived moduli space is represented by an affine DG scheme 𝐑Loc 𝐺 (𝑋, * ): we call the (co)homology of the structure sheaf of 𝐑Loc 𝐺 (𝑋, * ) the representation homology of 𝑋 in 𝐺 and denote it by HR * (𝑋, 𝐺). The 0-dimensional homology, HR 0 (𝑋, 𝐺), is isomorphic to the coordinate ring of the 𝐺-representation variety Rep 𝐺 [𝜋 1 (𝑋)] of the fundamental group of 𝑋 -a well-known algebrogeometric invariant that plays a role in many areas of topology. The higher representation homology is much less studied. In particular, when 𝑋 is simply connected, HR 0 (𝑋, 𝐺) is trivial but HR * (𝑋, 𝐺) is still an interesting rational invariant of 𝑋 that depends on the Lie algebra of 𝐺. In this paper, we use Quillen's rational homotopy theory to compute the representation homology of an arbitrary simply connected space (of finite rational type) in terms of its Lie and Sullivan algebraic models. When 𝐺 is reductive, we also compute HR * (𝑋, 𝐺) 𝐺 , the 𝐺-invariant part of representation homology, and study the question when HR * (𝑋, 𝐺) 𝐺 is free of locally finite type as a graded commutative algebra. This question turns out to be related to the so-called Strong Macdonald Conjecture, a celebrated result in representation theory proposed (as a conjecture) by Feigin and Hanlon in the