The earliest LEGO titles were PC games: Lego Rock Raiders came first, followed by Lego Loco, with other LEGO releases following on the same platform.
The first major, multi-console LEGO game, though, was Lego Star Wars: The Video Game — the title that established the template the series still uses.