Carrying weapons is against the law.

Literal

Weapons [object-を] carry-around [nominalizer-のは] law-violation [copula-である].

持ち歩く is a compound verb (持つ + 歩く) meaning 'to carry around.' The nominalizer の turns the clause into a topic, and ~である is the formal copula used in legal and written contexts.