HAMBANTOTA, Sri Lanka—When the Indian Ocean tsunami pulverized much of this town 10 years ago, locals wondered if it would ever recover. Then China stepped in.

It came through with money for big projects including a $1 billion port and a $209 million airport.

It is also providing assistance for other developments across Sri Lanka, including...