China is building infrastructure in Peru, Panama, Singapore, Nairobi, Suez, Lagos, and many other places around the world to extract resources (making it easier to take all the goods those places can produce). They are giving money to different countries so that they will develop ports all around the world. They want these so they can extract resources, and that's why they need the infrastructure. Most of the construction takes place in the Middle East and Africa