We construct two algebraic versions of homotopy theory of rational disconnected topological spaces, one based on differential graded commutative associative algebras and the other one on complete differential graded Lie algebras. As an application of the developed technology we obtain results on the structure of Maurer Cartan spaces of complete differential graded Lie algebras.