Meaning of the word "by law" in English

What does "by law" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

by law

US /baɪ lɔː/
UK /baɪ lɔː/

Phrase

according to the law; legally

Example:
You are required by law to wear a seatbelt.
Smoking is prohibited by law in public buildings.