GENEVA — Doctors Without Borders, one of Europe’s biggest charities, said Friday that it was turning its back on millions of dollars from the European Union to protest the bloc’s policies on refugees and migrants.

“We will no longer take funds from the E.U. and its member states in protest at their shameful deterrence policies and their intensification of efforts to push people back from European shores,” the charity said in a statement.

It has sharply criticized the agreement between the European Union and Turkey that will provide more than $6 billion to Turkey in return for stopping the flow of refugees to Europe and taking back migrants who cross the Aegean Sea to Greece. That deal, the charity said, made aid to Turkey contingent on tighter border controls, not on the basis of humanitarian need.