idiom

A law unto oneself.

Theme: freedom Keyword: rule

means

To act according to one's own wishes rather than accepted rules or expectations.

Example

The eccentric director was a law unto himself.