What it the moaning of the Idiom/proverb “To be at loggerheads” ?

What it the moaning of the Idiom/proverb “To be at loggerheads” ?

A.  To cooperate with enemies
B. To be in strong disagreement or dispute
C. To face stiff opposition
D. To tax one’s mind and body