What is the meaning of [stabbed me in the back]

Sophia acted like she was my friend. But then she stabbed me in the back (betray) and went out with my boyfriend.