LOS ANGELES — He talked about the movie business with Michael Douglas, Morgan Freeman and Dwayne Johnson over dinner at Rupert Murdoch’s house. He discussed space travel with Richard Branson in the California desert, and philanthropy with Bill Gates and technology with Jeff Bezos in Seattle. He visited Harvard and MIT, brokered arms deals with President Trump and sat down with Wall Street financiers. He even met with Oprah Winfrey.

For nearly three weeks, Crown Prince Mohammed bin Salman, the 32-year-old heir to the Saudi throne, has crisscrossed the United States, on an ambitious, choreographed journey through modern American life, while under heavy guard because of his many enemies in the Middle East.

The prince, who arrived in America with a reputation as an aggressive consolidator of power back home and a zealous interventionist abroad, is seeking to change the perception of Saudi Arabia from an opaque and conservative kingdom, where mosques promote extremist ideology and women are relegated to second-class status, to a modernist desert oasis.

Prince Mohammed also has sought to attract American investors for industries going well beyond Saudi Arabia’s Aramco petroleum giant. He is pressing what he has described as a transformative economic agenda, to wean the kingdom from reliance on oil and diversify its economy through public infrastructure investments and development of an entertainment industry — including theme parks along the lines of Six Flags and Disney.