Commonly used in medical contexts.
El hinchimiento de su tobillo se debió a un esguince.
The swelling of his ankle was due to a sprain.
El hinchimiento en mi tobillo se debe a una lesión reciente que no he tratado bien.
The swelling in my ankle is due to a recent injury that I haven't treated well.