This phrase is casual, used mostly in spoken conversation or informal writing. My uncle doesn't care about conventions; he's a law unto himself.
Pro Tip 2/3
Negative Implication
The phrase can imply someone is difficult to manage or control, not always positive. In meetings, Lisa is a law unto herself, often disrupting the agenda.
Pro Tip 3/3
Unique Behavior
Emphasizes a person's unique way of doing things, differing from the group. He paints in the dark; truly, he's a law unto himself.