Five years after the events of the first film, Bricksburg has been transformed into the rugged wasteland of Apocalypseburg after an invasion by aliens from the Duplo world. When General Mayhem and her friends are kidnapped and taken to the Systar System, the cheerful Emmet sets out on a dangerous rescue mission. Along the way he meets the tough and mysterious Rex Dangervest, who promises to help him. As the mission unfolds, Emmet discovers that being optimistic might not be enough to save his friends.