Uh, depends on what you mean by legal or illegal. Most steroids are Controlled Substances in the US, and specifically under Schedule III.
From wikipedia:
In other words, they're illegal to posses without a prescription, and illegal to distribute unless properly licensed to do so.