Snubbed by the United States and charged by the International Criminal Court, Kenyan President Uhuru Kenyatta has headed east and scored USD 5 billion (3.7 billion euros) of infrastructure deals with China.
Just months into his presidency, Kenyatta has highlighted China's growing economic clout in the region by choosing to make Beijing the destination of his maiden state visit.
As an astute, western-educated economist and businessman, Kenyatta has all the more reason to work on ties with China given that he was snubbed by Barack Obama during the US leader's trip to the African continent last month.
"China's importance to Africa cannot be underrated. China is our biggest partner in development," tweeted Kenyatta, who is wanted on charges of crimes against humanity by the International Criminal Court, as he touched down in Beijing at the beginning of the week.
The latest deals include a batch of energy projects and the building of a new railway track from Kenya's Indian Ocean coast right through to its western border with Uganda.
Kenyatta also tweeted pictures of himself and his wife strolling along the Great Wall of China in the company of his Chinese counterpart and host Xi Jinping.
"We welcome the investment in key sectors of our economy," Kenyatta said after the signing in Beijing on Monday.
He pledged to further bolster "political and economic partnerships" with China.
China has long been a vital partner for most African countries, Kenya among them. China's official news agency Xinhua said that at USD 2.84 billion in trade Beijing is the east African nation's second-largest commercial partner.
Ahead of Kenya's March elections, Washington warned Kenyans that "choices have consequences", in an apparent caution against voting for Kenyatta.
After Kenyatta's win, Obama, whose family on his father's side is Kenyan, bypassed Kenya in favour of neighbouring Tanzania when he came to east Africa in early July.
Kenyan banker and analyst Aly-Khan Satchu said this may have backfired.
"I think the Western nations are finding the choices they made are having consequences in regard to the relationships that Kenya is seeking, China being the latest example," he told the BBC.
The red carpet treatment and 21-gun salute that the Kenyan leader received in China contrasts starkly with the reception he got in London, where he was invited to attend a conference on Somalia in May.
In Britain, Kenya's biggest bilateral trading partner, Kenyatta got a polite welcome but there was no opportunity for him to pose for the press alongside David Cameron.
Britain is among European Union countries which have said they will keep contacts with Kenyatta to a minimum.