Chinese internet giant Tencent has agreed to invest about $200 million in Brazil’s Nubank, which offers virtual credit cards, in a deal that values the startup at around $4 billion, a person familiar with the matter said.

Tencent’s first investment in Brazil makes Nubank one of the most valuable startups in Latin America. It is the latest sign of how China’s tech titans are seeking new opportunities in major emerging markets such as Southeast Asia, India and Latin America, creating new challenges for their Silicon Valley counterparts. Nubank was valued at $2 billion in March, according to startup tracker CB Insights.