Phormidium lacuna is a naturally competent, filamentous cyanobacterium that belongs to the order Oscillatoriales. The filaments are motile on agar and other surfaces and display rapid lateral movements in liquid culture. Furthermore, they exhibit a photophobotactic response, a phototactic response towards light that is projected vertically onto the area covered by the culture. However, the molecular mechanisms underlying these phenomena are unclear. We performed the first molecular studies on the motility of an Oscillatoriales member. We generated mutants in which a kanamycin resistance cassette (KanR) was integrated in the phytochrome gene cphA and in various genes of the type IV pilin apparatus. pilM, pilN, pilQ and pilT mutants were defective in gliding motility, lateral movements and photophobotaxis, indicating that type IV pili are involved in all three kinds of motility. pilB mutants were only partially blocked in terms of their responses. pilB is the proposed ATPase for expelling of the filament in type IV pili. The genome reveals proteins sharing weak pilB homology in the ATPase region, these might explain the incomplete phenotype. The cphA mutant revealed a significantly reduced photophobotactic response towards red light. Therefore, our results imply that CphA acts as one of several photophobotaxis photoreceptors or that it could modulate the photophobotaxis response.