A masjid as it is known in Arabic is a place of worship where the Muslims, the followers of the religion of Islam perform their prayers (namaz).
The word masjid itself has most probably derived from the Arabic word 'sajad' which means to prostrate, an action which is performed by the worshippers when we pray.