Kuala Lumpur - Barack Obama will this weekend become the first US president to visit Malaysia for nearly 50 years, seeking to put decades of uneasy relations behind him as both cast wary eyes on a rising China.
Mindful of America's perennial image problem in the Islamic world, Obama - who visits on Saturday to Monday - is expected to tout the US friendship with the economically thriving moderate Muslim nation.
As one of several rival claimants to parts of the South China Sea, Malaysia is also an important partner in the US "rebalance" of its strategic attention to Asia, where concern is rising over Beijing's territorial assertiveness.
Obama will "highlight the growing strategic and economic relationship" with Malaysia and its "credentials as a moderate, Muslim-majority state and emerging democracy", said Joshua Kurlantzick, a fellow at the US Council on Foreign Relations.
Prime Minister Najib Razak, meanwhile, will seek to capitalise on Obama's expected praise to counter flagging voter support and global criticism over the handling of the loss of Malaysia Airlines flight MH370.
Obama was five years old the last time a serving US leader visited multi-cultural Malaysia - Lyndon Johnson came in 1966 to rally support for the US war in Vietnam.
Tension followed during the 1981-2003 tenure of authoritarian leader Mahathir Mohamad, a harsh critic of US policies.
But ties - especially trade - remained solid, and the more Western-oriented Najib has sought even closer relations.
US Deputy National Security Advisor Ben Rhodes this week expressed hope the visit would "elevate US-Malaysian relations to a new stage".
Obama was to visit Malaysia late last year, but postponed it to deal with the US government shutdown.
China looms large
Underlining the need for a re-introduction after nearly a half-century, Malaysia is the only stop on Obama's Asian swing - he also visits long-time close allies Japan, South Korea and the Philippines - to include a "town-hall meeting".
At the event on Sunday Obama will engage with youth leaders from Malaysia and around Southeast Asia. He will also meet Malaysia's king and pay a visit to the National Mosque.
As with Obama's other stops, China will loom large.
China is now easily Malaysia's top trade partner and Najib has played down their rival maritime claims.
But Malaysian anxieties have grown, particularly after China held naval exercises in disputed waters late last year, and the US and Malaysia have moved recently to improve defence ties.
Chinese criticism of Malaysia over MH370 has also left a bitter aftertaste.
"[Najib's government] obviously hopes that Obama's star effect can rub off on its flagging popularity," said Oh Ei Sun, senior fellow at the S Rajaratnam School of International Studies in Singapore.
"And Malaysia can continue to counterbalance China with the US in its foreign policy - siding with China economically but with the US on security."
But differences remain.
The economic component of Obama's "rebalance" rests largely on his envisioned Trans-Pacific Partnership Agreement (TPPA), the region-wide trade pact bedevilled by rocky negotiations with partners.
Malaysia has resisted free-market reform requirements that clash with its controversial policies reserving economic advantages for majority ethnic Malays.
Obama may also face pressure to address uncomfortable rights, democracy and religion issues in Malaysia.
In elections last year, more than half of Malaysians voted against Najib's 57-year-old regime, which is accused of gaming the electoral system to retain power and of cracking down on critics.
Non-Muslim minorities in the multi-faith country of 28 million also complain of shrinking religious freedom.
Washington has already questioned the March conviction of opposition leader Anwar Ibrahim on sodomy charges widely considered politically motivated.
US officials said Obama will not meet Anwar, a decision that could draw criticism in Washington where he is popular for his reform advocacy.
Anwar, who faces five years in jail but will appeal the conviction, told AFP on Monday a meeting with Obama would have been "helpful".
Obama is scheduled to meet unspecified civil-society groups.
But failure to engage a broad segment of Malaysia "risks alienating an entire generation of young Malaysians who mostly support the opposition and voted for the opposition last year", Kurlantzick said.