zwangsweise
forcibly
Caused by force or an external necessity; not voluntarily.
Nach der Kündigung musste er zwangsweise eine neue Wohnung suchen.
After being given notice, he was forced to look for a new apartment.

forcibly / inevitably
Loading your saved state.
forcibly
Caused by force or an external necessity; not voluntarily.
Nach der Kündigung musste er zwangsweise eine neue Wohnung suchen.
After being given notice, he was forced to look for a new apartment.

The word is made up of 'Zwang' (force, pressure, necessity) and the ending '-weise' (in a ... way). So it describes an action that happens in a way determined by force or necessity.
Die Fabrik musste zwangsweise schließen, da die Aufträge fehlten.
The factory was forced to close because there were no orders.
'Zwangsweise' (forcibly/inevitably) is usually used as an adverb. It can stand at the beginning of a sentence, in which case the verb follows in second position. Or it stands in the middle of the sentence, usually directly before or after the conjugated verb.
Zwangsweise musste die Familie ihr Haus verkaufen.
The family was forced to sell their house.
While one meaning describes direct coercion affecting a person or company, the other refers to a logical, unavoidable consequence. This second meaning is often found in sentences about economic or logical developments.
Wenn die Kosten steigen, erhöhen sich zwangsweise auch die Endpreise.
If costs rise, the final prices inevitably rise as well.
voluntary
'freiwillig' and 'zwangsweise' are clear opposites. 'freiwillig' is used when someone does something of their own free will and is not forced to do it. 'zwangsweise' means that something happens because of pressure, obligation, or external circumstances. When your own decision is important, 'freiwillig' fits. When someone has no real choice, 'zwangsweise' is more accurate.

Der Gast musste den Raum zwangsweise verlassen, weil die Veranstaltung beendet war.
The guest had to leave the room because the event was over.
Im Büro hilft sie freiwillig bei der Vorbereitung des Meetings.
At the office, she voluntarily helps prepare the meeting.