In Barnham, Suffolk, a symbolic poll saw 257 of 274 voters choose to declare the village independent in protest at plans to house up to 931 male asylum seekers at the former RAF Barnham airbase.
The referendum, which is not legally binding, resulted in 94% of participants voting for leaving the UK, 16 against and one spoiled vote.
Following the result, residents unveiled a flag and announced that the village would now declare itself the Bailiwick of Barnham.
The government has said a final decision has not yet been made, but if it does proceed the "safety and security" of the community would be "of the utmost importance".