Google’s is “committed to the US Military, not the Chinese Military," President Trump said after meeting the firm's chief executive on Wednesday.
In a tweet, the President said he and Sundar Pichai also discussed “political fairness and various things that Google can do for our country”.
It follows a tweet earlier this year in which Mr. Trump accused Google of "helping China".
Google told the BBC the company was “pleased” with the meeting.
"We were pleased to have productive conversations with the President about investing in the future of the American workforce, the growth of emerging technologies and our ongoing commitment to working with the US government,” the firm said.
‘Totally committed'
The firm's spokesman would not, however, share details of how long the meeting was, or whether the firm agreed with Mr. Trump’s characterization of the discussion. In two tweets, Mr. Trump - incorrectly referring to Mr. Pichai as Google’s “president” - said the “meeting ended very well!”.
“Just met with Sundar Pichai, President of Google, who is obviously doing quite well,” the tweet read.
“He stated strongly that he is totally committed to the US military, not the Chinese military.”
Mr. Trump added: “Also discussed political fairness and various things that Google can do for our country.”
Republicans, including Mr. Trump, have accused Google of unfairly “censoring” conservative views on its platform, an accusation the firm strongly denies, and one for which experts say there is no evidence.