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?