My friend disagrees with my opinion.

Literal

Friend [topic-は] my opinion [target-に] opposed is.

反対だ ('is opposed, is against') takes に to mark what one opposes. A clean topic-comment sentence: the friend (topic) is against my opinion (comment). 反対 works as both a noun ('opposition') and a na-adjective ('opposed').