It can mean both 'mainly' and 'most importantly'. It can be very hard to distinguish any differences among these 3 words. Webster's dictionary lists 'most importantly' as #1, and 'mainly' as #2.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.