When combined with baking soda, the solution creates carbon dioxide which attracts mosquitoes and prevents them from escaping.