"Unlawful" vs. "illicit": when breaking the rules isn’t the same

What is similar?
Both "unlawful" and "illicit" describe something that is not allowed by law or rules. They often refer to acts that are forbidden.
What is different?
"Unlawful" refers specifically to something that is illegal or not permitted by law. "Illicit" often describes something that is not only illegal but also morally wrong or forbidden by custom, especially regarding things like drugs, relationships, or activities.
Which one is more common?

Examples of usage
Unlawful- The company was fined for engaging in unlawful business practices.
- It is unlawful to drive without a valid license.
- They were arrested for unlawful assembly.
- The police uncovered an illicit drug operation.
- He was involved in an illicit affair.
- Smuggling rare animals is an illicit activity.