BERLIN — Chancellor Angela Merkel of Germany expressed solidarity on Friday with the four Democratic congresswomen whom President Trump told to “go back” to the countries they came from, saying the remarks ran counter to her impression of what makes America strong.

Speaking to reporters in Berlin on Friday at her annual summer news conference, the chancellor fielded questions on a broad range of topics, but was asked repeatedly about her position regarding Mr. Trump’s insults to the congresswomen.

The House of Representatives has voted to condemn the president’s remarks as racist, and many world leaders have offered rebukes in recent days, including Prime Minister Jacinda Ardern of New Zealand and Prime Minister Justin Trudeau of Canada. Prime Minister Theresa May of Britain told Parliament this week that she “strongly condemned those comments made by President Trump.”

Ms. Merkel has been critical of Mr. Trump since the day after he was elected, when she pointedly reminded him that Germany and the United States were bound by their common values of “democracy, freedom, the respect for the law and dignity of human beings, independent of their origin, skin color, religion, gender, sexual orientation or political beliefs.”