They took over the entire planet and have been secretly consolidating their power behind the scenes while appearing as benevolent dictators to the masses. That was the end of the XCOM project, and the alien invaders won. The Commander, the guy in charge at XCOM, was captured during an ambush on the XCOM base.
Rather than following the first game directly, XCOM 2 assumes that you lost the first game.