Can someone help me with this sentence.

There was an increase in wealth when the people died, leaving them with money, therefore CREATING a middle class

Does the capitalized word go with the sentence?

Yes, it's correct.

Thank You

"There was an increase in wealth when the people died, leaving them with money ... "

My question is -- who are "them" in this sentence?

The people are them

...when the people died, leaving them with money ...

The people died -- but still had money?? That doesn't make sense.

the people died, leaving those who were alive with their money

Ahhhh. Be sure to rephrase your sentence then.

Ok. How about this:

There was an increase in wealth when those struck with the plague died, leaving the people who were spared with money, therefore creating a middle class

Much better!

Well, wait ...

There was an increase in wealth when those struck with the plague died,

It sounds as if the increase in wealth happened when people were killed by the plague. I don't think that's what you mean, right?

Yeah, that's now what i mean. I mean that after those struck by the plague died, the others left got wealthier

OK, rephrase again, and I'll check it for you.

There was an increase in wealth after the Black Death took its toll on people, leaving all uninjured with the money, therefore creating a middle class

Much better.

The plague, however, isn't connected to injuries. Try replacing "uninjured" with this -- "who lived through it"

There was an increase in wealth after the Black Death took its toll on people, leaving all who lived through it with the money, therefore creating a middle class

Excellent!!