The fabrication of microfluidic channels and their implementation in experiments for studying the chemotactic foraging behaviour of marine microbes within a patchy nutrient seascape and the swimming behaviour of bacteria within shear flow are described.