It is said as a polite answer when someone thanks you for doing something; it means "I am glad I was able to help. " If you want the history of the phrase, "You're welcome" is the grammatical combination of the Old English word "wilcume" ("wil"-"cume"; or "pleasure"-"come"). In German, "wilkommen".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.