1An adverb used to affirm something strongly and without doubt — 'of course', 'certainly', 'naturally'.
「一緒に行ってもいい?」「もちろん!」
"Can I come with you?" "Of course!"
彼が正直な人であることはもちろん、みんな知っている。
It's a given that he's an honest person — everyone knows it.
もちろん、失敗することもあるさ。
Of course, sometimes you fail too.
会員はもちろん、一般の方も参加できます。
Not only members, but the general public can take part too.