Stolen shortly after birth, Shruikan went insane and was consumed by hatred due to having been controlled, corrupted and tortured by Galbatorix his entire life. His loyalty to Galbatorix is questionable, but Shruikan seemed to take tormented pleasure in fighting for him.
When Galbatorix first dragon, Jarnunvösk was killed by Urgals, Galbatorix began a quest for revenge against the Riders which ultimately resulted in their extinction and his rise to power in the human kingdom. He stole a dragon hatchling named Shruikan and bound their minds in a crude approximation of a Rider's bond.