We investigated the biological activity of surfactants based on quaternary ammonium compounds: gemini surfactant hexamethylene-1,6-bis-(N,N-dimethyl-N-dodecylammonium bromide) (C6), synthesized by the reaction of N,N-dimethyl-N-dodecylamine with 1,6-dibromohexane, and its monomeric analogue dodecyltrimethylammonium bromide (DTAB). The experiments were performed with bacteria Asaia lannensis, a common spoilage in the beverage industry. The minimal inhibitory concentration (MIC) values were determined using the tube standard two-fold dilution method. The growth and adhesive properties of bacterial cells were studied in different culture media, and the cell viability was evaluated using plate count method. Both of the surfactants were effective against the bacterial strain, but the MIC of gemini compound was significantly lower. Both C6 and DTAB exhibited anti-adhesive abilities. Treatment with surfactants at or below MIC value decreased the number of bacterial cells that were able to form biofilm, however, the gemini surfactant was more effective. The used surfactants were also found to be able to eradicate mature biofilms. After 4 h of treatment with C6 surfactant at concentration 10 MIC, the number of bacterial cells was reduced by 91.8%. The results of this study suggest that the antibacterial activity of the gemini compound could make it an effective microbiocide against the spoilage bacteria Asaia sp. in both planktonic and biofilm stages.