Meaning:
To support someone; to continue supporting someone even when things are bad.
To remain loyal to someone; aid or support someone:
To keep or maintain some principle or position on an issue:
Example:
A true friend will always stand by even in difficulties.
She stood by her friend and defended her throughout the scandal.
Self-confidence makes you stand by your beliefs.