Verb + à + infinitive
obliger
àde
The constructions
àobliger quelqu'un à + infinitif
Meaning : in the active voice
La pluie nous a obligés à rentrer.
deêtre obligé de + infinitif
Meaning : in the passive, the preposition changes
Nous avons été obligés de rentrer.
Do not writeNous avons été obligés à rentrer.
Why
Obliger quelqu'un à faire, but être obligé de faire: the preposition changes with the voice. It is one of the few verbs where this happens, and forcer follows the same rule. Remember the passive, by far the most frequent: je suis obligé de.