Definitions of illegitimately:

  • adverb:   of biological parents not married to each other
    Example: "This child was born illegitimately"
  • adverb:   in a manner disapproved or not allowed by custom
    Example: "He acted illegitimately when he increased the rent fourfold"