Because it was snowing outside, our picnic was canceled.
What is the function of the underlined part of the sentence?

the underlined part is: "because it was snowing outside"

A adjective
B adverb
C noun
D verb