1.
disagreeing strongly with sb/sth, especially with the aim of preventing sth from happening :
Protest marches were held in opposition to the proposed law.
2.
contrasting two people or things that are very different :
Leisure is often defined in opposition to work.