Simple Sentences:
* The students were opposed to the new dress code.
* The politician was opposed to raising taxes.
* He was opposed to the idea of moving.
More Complex Sentences:
* While many supported the project, a vocal minority remained opposed to it.
* The bill was passed despite strong opposition from environmental groups.
* She was deeply opposed to the war, but her family felt otherwise.
Using "opposed to":
* I am opposed to the use of violence in any situation.
* The government is opposed to any changes to the current law.
* They were opposed to the idea of a new school building.
Using "opposed by":
* The plan was opposed by local residents.
* The proposal was opposed by several members of the committee.
* The movie was opposed by some religious groups.
Note: "Opposed" can be used as an adjective or a verb.