
sich anfreunden mit
to befriend
To begin and build a friendship with someone.
In der neuen Schule hat er sich schnell mit seinen Mitschülern angefreundet.
At his new school, he quickly befriended his classmates.
to befriend / to get used to
Loading your saved state.

to befriend
To begin and build a friendship with someone.
In der neuen Schule hat er sich schnell mit seinen Mitschülern angefreundet.
At his new school, he quickly befriended his classmates.

to get used to
To gradually learn to accept a new or unpleasant idea, situation, or fact.
Ich kann mich einfach nicht mit dem Gedanken anfreunden, umzuziehen.
I simply can't get used to the idea of moving.
'Anfreunden' (to befriend / to get used to) is a separable verb. In a main clause, the prefix 'an' goes at the end of the sentence. In subordinate clauses and in the infinitive with 'zu', the verb stays together.
Er freundete sich schnell mit den neuen Kollegen an.
He quickly befriended the new colleagues.
This verb is always reflexive and is used with the fixed preposition 'mit' and the dative. So the structure is always: sich mit jemandem/etwas anfreunden (to befriend someone / to get used to something).
Hast du dich schon mit dem neuen Projektleiter angefreundet?
Have you already befriended the new project manager?
The object after 'mit' reveals the meaning. If a person follows, it means 'to make friends'. If an abstract thing follows, such as 'Gedanke' (thought/idea), 'Idee' (idea), or 'Situation' (situation), it means 'to learn to accept something'.
Sie hat sich im Urlaub mit einer netten Familie angefreundet.
She befriended a nice family while on vacation.
to accept
Both words can show that one accepts an initially unpleasant idea or situation. „Sich anfreunden mit“ (to get used to) emphasizes a gradual change toward a more positive attitude, while „akzeptieren“ also works for neutral or reluctant acceptance. Use „anfreunden“ when inner agreement is gradually growing.

Nach einigen Tagen konnte ich mich allmählich mit dem neuen Arbeitsplan anfreunden.
After a few days, I gradually began to get used to the new work schedule.
Nach einigen Tagen konnte ich den neuen Arbeitsplan akzeptieren.
After a few days, I was able to accept the new work schedule.