Prime Designate Loken was a servant of the Titans and was appointed to oversee Ulduar, along with the Keepers Hodir, Freya, Thorim, and Mimiron.
Over time, Loken became corrupted while guarding the prison of Yogg-Saron. He enslaved the keepers to his will, although Thorim initially avoided this fate because he left Ulduar during a conflict between Frost and Storm giants.
After players stir Thorim from his apathy, Loken captures him and uses the illusion of Sif to keep him under Yogg-Saron's control. Loken later retreats into the Halls of Lightning, where heroes defeat him.
His death, along with the release of Yogg-Saron, triggers Algalon's arrival. Algalon scans Azeroth for corruption and decides whether the planet should be left alone or re-originated by the Titans.