The LEGO brick may not look like much but it is the cornerstone of the $38.5 billion Danish company. Today, LEGO’s blockbuster portfolio includes collaborations with The Beatles, Star Wars, and Frozen, a mega-hit movie franchise and 8 LEGOland theme parks. A toy that was once thought of for little boys is seeing its largest growth coming from girls and adults. But in the early 2000s, the company made several missteps and came extremely close to declaring bankruptcy. Here’s how LEGO reclaimed its status as one of the most successful toy companies in the world.