RAF Halton Station Commander group captain Adrian Burns was among the visitors to Hemel Hempstead Mosque.
Group captain Burns joined the mayor of Dacorum, councillor Allan Lawson and councillor Suqlain Mahmood, from Hemel Hempstead, for a visit to the mosque in St Albans Hill.
Visitors observed noon prayers and then had an hour long discussion with the Imam and committee members.
Cllr Mahmood said: “The visit was a great opportunity for promoting a clearer understanding of the role of the mosque within the community and the inter-faith work it does.
“It also provided a useful insight into what RAF Halton does for our troops and gave a better understanding of their community involvement ethos,”
Group Captain Burns said RAF Halton aspired to train the best servicemen and women for the armed forces while at the same time actively engaging with the local community.
General secretary of the mosque Tabrez Khan said some elements of the media are guilty of negative stereotyping and reporting of Islam, which inadvertently provides wide exposure to the extreme viewpoint of a very small minority.