To leave a place or person suddenly or secretly, often out of fear, dissatisfaction, or in order to escape.
example
Der Hund ist gestern weggelaufen, als die Gartentür offen stand.
The dog ran away yesterday when the garden gate was open.
Usage tips
Separable verb
'Weglaufen' (to run away) is a separable verb. In a main clause, the prefix 'weg' comes at the end, but in a subordinate clause it remains attached to the verb.
EXAMPLE
Der Junge lief sofort weg, als er den großen Hund sah.
The boy ran away immediately when he saw the big dog.
Perfect tense with 'sein'
Since 'weglaufen' (to run away) describes movement, the perfect tense is always formed with the auxiliary verb 'sein' (to be), not with 'haben' (to have).
EXAMPLE
Meine Katze ist schon wieder weggelaufen.
My cat has run away yet again.
Preposition 'vor'
In the figurative meaning, 'weglaufen' (to run away) is always used with the preposition 'vor' and the dative. You run away 'vor' (from) a problem, a task, or a responsibility.
EXAMPLE
Er versucht, vor seiner Verantwortung wegzulaufen.
He is trying to run away from his responsibility.
Compare with
antonym
weglaufen vs bleiben
to stay / remain
'bleiben' and 'weglaufen' are opposites when it comes to a place or a person. 'bleiben' means that you stay there and do not leave. 'weglaufen' means that you leave quickly or secretly, often out of fear, anger, or because you want to escape a situation. 'weglaufen' sounds stronger and more emotional than simply 'weggehen' (to leave / go away). If someone calmly stays in a place, 'bleiben' fits; if someone flees or suddenly disappears, 'weglaufen' fits.
weglaufen
Der Junge ist weggelaufen, weil er Angst vor dem großen Hund hatte.
The boy ran away because he was afraid of the big dog.
bleiben
Nach dem Unterricht bleibt sie noch kurz im Klassenraum.
After class, she stays in the classroom for a little while.