(CNN)On a blue-sky day in May, as the coronavirus raged across the world, the Chinese flag was raised on a remote nation with a total population of 116,000, thousands of miles from Beijing.
The opening of a Chinese embassy on Kiribati, a nation of 33 atolls and reef islands in the central Pacific, might have seemed strange -- particularly during a pandemic. Just three other countries have embassies in the island state: Australia, New Zealand and Cuba.
Yet Kiribati is the site of growing geopolitical competition.
Last September, it switched diplomatic recognition from Taipei to Beijing. China considers the self-governed island of Taiwan a breakaway province and has poached seven of its diplomatic allies since 2016.
And this week, Kiribati's pro-Beijing President Taneti Maamau -- who oversaw the country's diplomatic switch -- won a closely watched election after campaigning for closer ties with China, defeating an opposition rival who was sympathetic to Taiwan.
Kiribati is the latest example of Beijing's growing influence in the Pacific, which consists of a string of resource-rich islands that control vital waterways between Asia and America.
The picturesque islands have long been aligned with the US, which has a large military presence, and allies such as Australia, the region's largest donor and security partner. But in recent years, many have forged closer ties with China due to Beijing's diplomatic and economic outreach -- creating a fault line for geopolitical tensions.
Now, as Canberra and Beijing pour aid into the region, the possibility of a travel bubble between the Pacific Islands and Australia has given the rivalry a new dimension.
In 2006, then-Premier Wen Jiabao became the most senior Chinese official to visit the Pacific Islands. He pledged 3 billion yuan ($424 million) in concessional loans to invest in resource development, agriculture, fisheries and other key industries, signposting Beijing's interest in the region.
Today, Beijing is its second-largest donor -- after only Australia, according to data compiled by the Lowy Institute, an Australian think tank.
For the Pacific Islands, which have a combined GDP of about $33.77 billion -- less than 1% of China's total GDP -- China has been a crucial partner during the pandemic.
Chinese health experts have given advice on how to fight the coronavirus over video conferences with their counterparts in the 10 Pacific Island countries sharing diplomatic relations with Beijing.
In March, China announced the donation of $1.9 million in cash and medical supplies to the countries to help them combat Covid-19. It has also sent medical supplies, protective gear and test kits, according to statements from Chinese embassies in the region.
Chinese medical teams are on the ground in nations including Samoa, helping local health authorities draft guidelines on how to control the coronavirus. In Fiji, specialized military vehicles have been provided.
According to the World Health Organization, the Pacific has reported 312 cases and 7 deaths, the majority of which are in the US territory of Guam.
The islands have so far largely warded off the coronavirus thanks to their remoteness and early lockdown measures. But local communities could face devastating consequences if the virus was to be hit, because of inadequate health care and lack of testing capacity, experts have warned.
"China's engagement in the Pacific today has been one driven by opportunism, they're trying to gain as much influence as they can," said Jonathan Pryke, director of the Pacific island program at the Lowy Institute.
The Chinese Foreign Ministry denies this, saying China's assistance to Pacific Island countries is "genuine" and does not have "any political attachment."
But stronger ties can come in handy in times of need.
In May, when China was facing a global backlash over its early handling of the coronavirus outbreak, it turned to the Pacific for support. Days before the World Health Assembly meeting in May, ministers from 10 Pacific Island nations joined a video conference on Covid-19 convened by China.
The meeting ended with a glowing affirmation of China's coronavirus response.
"This is what the Chinese government needed," said Denghua Zhang, from the Australian National University in Canberra.
In joint press release after the event, the Pacific Island nations commended China for its "open, transparent and responsible approach in adopting timely and robust response measures and sharing its containment experience."
The Trump administration has repeatedly blamed China for the pandemic, while Canberra has infuriated Beijing with its call for an independent inquiry into the origins of the virus.
Australia steps in
China's coronavirus assistance to the Pacific, however, pales in comparison to the financial support provided by Australia. Last month, Canberra said it was spending 100 million Australian dollars ($69 million) to provide "quick financial support" to 10 countries in the region, with the money redirected from its existing aid programs.
Australia has also recently announced that it will beam popular domestic television shows like "Neighbours" and "Masterchef" into seven Pacific Island countries -- a move widely seen as a soft power push to counter China's rising influence.
"The Australian government has clearly acknowledged that there can't be any room for vacuum creation, (be it) the hard power, soft power, the aid front, or the medical front," Pryke said.
"They can't step back from any vacuum for fear that China might fill it."
This was on Australia's radar before the pandemic. After coming into office in 2018, Prime Minister Scott Morrison launched his "Pac