Here's a breakdown:
* Illegal: This is the adjective form, meaning "not allowed by law."
* -ly: This is the suffix that turns an adjective into an adverb, indicating how something is done.
Therefore, "illegally" means "in a way that is not allowed by law."