A synagogue is a Jewish or Samaritan house of worship. Synagogues have a large place for prayer (the main sanctuary) and may also have smaller rooms for study and sometimes a social hall and offices. Some have a separate room for Torah study, called the "house of study".

Synagogues are consecrated spaces used for the purpose of prayer, reading of the Tanakh (the entire Hebrew Bible, including the Torah), study and assembly; however, a synagogue is not necessary for worship. Halakha holds that communal Jewish worship can be carried out wherever ten Jews (a minyan) assemble. Worship can also be carried out alone or with fewer than ten people assembled together.

More Info: en.wikipedia.org