What is a Mosque?

What does the word mosque originally mean and where did it come from? Why were mosques buil ...