it is generally seen as good to have someone who leads the prayers, though this is not strictly necessary. the person who usually leads the prayers is called "imam". he must be a free and honest man. he should also be an authority when it comes to answering questions on religion. in mosques that were built or that are kept up by the government, the imam is selected by the ruler. in private mosques, the community selects the imam, through majority voting.